Belle II Software  light-2403-persian
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 
17 import os
18 import subprocess
19 import shutil
20 import basf2
21 import sys
22 
23 if __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)