Belle II Software development
check_rho_mass_shift.py
1
8
9'''
10Simple launcher for generators/tests/check_rho_mass_shift.py_noexec.
11'''
12
13import subprocess
14
15import basf2
16import b2test_utils
17
18if __name__ == '__main__':
19
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]:
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)
def clean_working_directory()
Definition: __init__.py:189
def configure_logging_for_tests(user_replacements=None)
Definition: __init__.py:106