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