mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-02-02 10:50:42 +01:00
Added assert to check empty STDERR after running ISQL with preparing scripts. See also letter from dimitr, 01-feb-2022 14:46
This commit is contained in:
parent
c97da0829c
commit
d808db5954
@ -173,6 +173,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
commit;
|
||||
'''
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -155,6 +155,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
commit;
|
||||
'''
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -172,6 +172,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
''' % locals()
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
cur_lock_1 = con_lock_1.cursor()
|
||||
|
@ -829,6 +829,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -219,6 +219,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -204,6 +204,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -181,8 +181,11 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = 'recreate table detl(id int);' ) # drop dependencies
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -208,6 +208,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -199,6 +199,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -205,7 +205,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -184,6 +184,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
|
||||
act.isql(switches=['-q'], input = 'recreate table detl(id int);' ) # drop dependencies
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -225,6 +225,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -219,6 +219,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -201,6 +201,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -227,6 +227,10 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
@ -220,7 +220,11 @@ def test_1(act: Action, fn_worker_sql: Path, fn_worker_log: Path, fn_worker_err:
|
||||
commit;
|
||||
'''
|
||||
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ) )
|
||||
act.isql(switches=['-q'], input = ''.join( (sql_init, sql_addi) ))
|
||||
# ::: NOTE ::: We have to immediately quit if any error raised in prepare phase.
|
||||
# See also letter from dimitr, 01-feb-2022 14:46
|
||||
assert act.stderr == ''
|
||||
act.reset()
|
||||
|
||||
with act.db.connect() as con_lock_1, act.db.connect() as con_lock_2:
|
||||
for i,c in enumerate((con_lock_1,con_lock_2)):
|
||||
|
Loading…
Reference in New Issue
Block a user