Belle II Software
development
check_rho_mass_shift.py
1
8
9
'''
10
Simple launcher for generators/tests/check_rho_mass_shift.py_noexec.
11
'''
12
13
import
subprocess
14
15
import
basf2
16
import
b2test_utils
17
18
if
__name__ ==
'__main__'
:
19
20
b2test_utils.configure_logging_for_tests
()
21
22
steering_file = basf2.find_file(
'generators/tests/check_rho_mass_shift.py_noexec'
)
23
24
for
i
in
[1, 8, 9, 11, 13]:
25
with
b2test_utils.clean_working_directory
():
26
27
# This may look strange, but configure_logging_for_tests() does not act on the path of the steering file,
28
# that is the first line printed by basf2.
29
# So, we capture the log of the subprocess and we print it: in this way, the configure_loggging_etc
30
# in this process will fix the log of the subprocess, otherwise this test fails on our CI systems.
31
process = subprocess.run([
'basf2'
, steering_file, str(i)],
32
capture_output=
True
,
33
text=
True
,
34
check=
True
)
35
print(process.stdout)
b2test_utils.clean_working_directory
def clean_working_directory()
Definition:
__init__.py:189
b2test_utils.configure_logging_for_tests
def configure_logging_for_tests(user_replacements=None)
Definition:
__init__.py:106
generators
tests
check_rho_mass_shift.py
Generated on Fri Nov 8 2024 02:38:59 for Belle II Software by
1.9.6