Skip to content

Commit 9965726

Browse files
committed
Added/Updated tests\bugs\gh_7917_test.py: Added check for testing vanilla FB (temporary, until appropriate commits not merged with HQbird fork).
1 parent 3510e98 commit 9965726

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/bugs/gh_7917_test.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
6.x: https://github.com/FirebirdSQL/firebird/commit/8295aeb26ccee4f9a644c6928e598abbe06c31c0
4747
5.x: https://github.com/FirebirdSQL/firebird/commit/6f393ba762f390f69f895acc091583a3e486f4d0
4848
4.x: https://github.com/FirebirdSQL/firebird/commit/4c21cae77886461e68c2cab68ec063b416492e61
49+
50+
[01.02.2024] pzotov
51+
Added check for testing vanilla FB (temporary, until appropriate commits not merged with HQbird fork).
4952
"""
5053
import os
5154
import time
@@ -167,6 +170,16 @@ def run_encr_decr(act: Action, mode, max_wait_encr_thread_finish, capsys):
167170
@pytest.mark.version('>=4.0.5')
168171
def test_1(act: Action, tmp_sql_file: Path, tmp_log_file: Path, tmp_gstat_log: Path, capsys):
169172

173+
is_hqbird = None
174+
with act.db.connect() as con:
175+
cur = con.cursor()
176+
cur.execute("select g.rdb$config_id from rdb$database left join rdb$config g on upper(g.rdb$config_name) = upper('HQbirdVersionString')")
177+
for r in cur:
178+
is_hqbird = r[0]
179+
180+
if is_hqbird:
181+
pytest.skip("Applied only to standard FB builds.")
182+
170183
# Scan line-by-line through databases.conf, find line starting with REQUIRED_ALIAS and extract name of file that
171184
# must be created in the $(dir_sampleDb)/qa/ folder. This name will be used further as target database (tmp_fdb).
172185
# NOTE: we have to SKIP lines which are commented out, i.e. if they starts with '#':

0 commit comments

Comments
 (0)