Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
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:194
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 Thu Apr 10 2025 02:37:25 for Belle II Software by
1.9.6