Belle II Software light-2406-ragdoll
test_fei_generic.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <contact>vidya.sagar.vobbilisetti@belle2.org</contact>
14</header>
15"""
16
17import os
18import subprocess
19import shutil
20import basf2
21import sys
22
23if __name__ == '__main__':
24 cwd = os.getcwd()
25 tempdir = 'tmp_fei_generic'
26 os.mkdir(tempdir)
27 os.chdir(tempdir)
28
29 steering_file = basf2.find_file('analysis/validation/test_fei_generic.py_noexec')
30 process = subprocess.run(['basf2', steering_file])
31
32 os.chdir(cwd)
33 shutil.rmtree(tempdir)
34
35 sys.exit(process.returncode)