Belle II Software
release-05-02-19
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
k
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
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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
ExecuteStreamerTest.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
import
os
5
import
tempfile
6
from
ROOT
import
Belle2
7
8
testScript =
Belle2.FileSystem.findFile
(
'pxd/tests/streamer_test.py_noexec'
)
9
10
# create and move to temporary directory
11
with
tempfile.TemporaryDirectory()
as
tempdir:
12
print(
"Moving to temporary directory "
+ str(tempdir))
13
os.chdir(tempdir)
14
15
# might not be the most elegant way but cannot directly redirect ROOT Error
16
os.system(
"basf2 "
+ testScript +
" > output.log 2>&1"
)
17
# and check if an Error related to TStreamer was thrown
18
assert(0 == open(
'output.log'
,
'r'
).read().count(
'Error in <TStreamerInfo::Build>'
))
Belle2::FileSystem::findFile
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
Definition:
FileSystem.cc:147
pxd
tests
ExecuteStreamerTest.py
Generated on Tue Jan 4 2022 03:01:17 for Belle II Software by
1.8.17