6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00

Added/Updated tests\bugs\core_6469_test.py: Refactored, plus added combine_output in order to see STDERR content

This commit is contained in:
pavel-zotov 2024-05-10 01:17:03 +03:00
parent bc76e00aa2
commit 6d39fdf0b3

View File

@ -182,7 +182,7 @@ def run_script(act: Action, tmp_file: Path):
""" """
tmp_file.write_text(script) tmp_file.write_text(script)
act.isql(switches=['-n'], input_file = tmp_file, connect_db = False, credentials = False) act.isql(switches=['-n', '-q'], input_file = tmp_file, connect_db = False, credentials = False)
@pytest.mark.version('>=4.0') @pytest.mark.version('>=4.0')
@pytest.mark.platform('Windows') @pytest.mark.platform('Windows')
@ -268,7 +268,7 @@ patterns_lin = [re.compile('alter session reset', re.IGNORECASE),
@pytest.mark.platform('Linux') @pytest.mark.platform('Linux')
def test_2(act: Action, test_role: Role, capsys): def test_2(act: Action, test_role: Role, capsys):
with act.trace(db_events=trace_lin): with act.trace(db_events=trace_lin):
act.isql(switches=['-n'], input=test_script_lin) act.isql(switches=['-n', '-q'], input = test_script_lin)
# process trace # process trace
for line in act.trace_log: for line in act.trace_log: