17
17
[15.02.2024] pzotov
18
18
Checked on 4.0.5.3059 (commit #a552f1f3), 5.0.1.1340 (commit #f7171b58).
19
19
NOTE: 3.0.123.3731 (dob=15.02.2024) does NOT pass this test.
20
+
21
+ [16.02.2024] pzotov
22
+ Added [temporary] mark for SKIP this test when QA runs agains *fork* of standard FB because it hangs ('disabled_in_forks').
23
+ This mark will be removed after separating QA runs (executing tests against standard FB snapshot on DEDICATED machine).
24
+
25
+ NB-1. QA must use command like: 'pytest -m "not disabled_in_hqbird" ...' when check *fork* of standard FB.
26
+ NB-2. Unfortunately, nowadays QA runs for standard FB and its fork are performed at the same host.
27
+ Lagging problem exists with [back-]porting of some fixes/features into fork after implementation for the same FB-major version.
28
+ This can cause the whole QA-job to be incompleted and missed report for one of even several days.
20
29
"""
21
30
import sys
22
31
import subprocess
52
61
tmp_log_py = temp_file ('tmp_7979_run_external.log' )
53
62
tmp_sql_py = temp_file ('tmp_7979_check_result.sql' )
54
63
64
+ @pytest .mark .disabled_in_forks
55
65
@pytest .mark .version ('>=4.0.5' )
56
66
def test_1 (act : Action , tmp_run_py : Path , tmp_log_py : Path , tmp_sql_py : Path , capsys ):
57
67
if act .platform == 'Windows' :
@@ -60,6 +70,10 @@ def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, ca
60
70
pytest .skip ('Applies only to SuperServer' )
61
71
62
72
py_run_ext = ' ' .join ( [ sys .executable , '-u' , f'{ str (tmp_run_py )} ' ] )
73
+
74
+ ##########################################################################################
75
+ ### G E N E R A T I O N O F T E M P O R A R Y P Y T H O N S C R I P T ###
76
+ ##########################################################################################
63
77
py_source = f"""# -*- coding: utf-8 -*-
64
78
# { py_run_ext }
65
79
import os
@@ -101,6 +115,9 @@ def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, ca
101
115
102
116
subprocess.run( [bin_isql, '-q', '-i', tmp_sql, db_conn] )
103
117
"""
118
+ ########################################################
119
+ ### END OF GENERATION OF TEMPORARY PYTHON SCRIPT ###
120
+ ########################################################
104
121
105
122
tmp_run_py .write_text (py_source )
106
123
with open (tmp_log_py , 'w' ) as f :
0 commit comments