Belle II Software  release-08-01-10
hlt_execution.py
1 #! /usr/bin/env python3
2 
3 
10 import subprocess
11 import sys
12 
13 from hlt.clean_execution import CleanBasf2Execution
14 
15 
16 def main(script_name):
17  """Shortcut method to do the basf2 execution on expressreco and hlt"""
18  execution = CleanBasf2Execution(timeout=10)
19  try:
20  execution.start(["basf2", "--no-stats", script_name, "--"] + sys.argv[1:])
21  return_code = execution.wait()
22  finally:
23  subprocess.run("framework-pcore-clear_ipcs")
24  return return_code
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91