The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
GaudiTests Namespace Reference

Functions

 run_gaudi (*args, **kwargs)
 (c) Copyright 2022 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".
 

Function Documentation

◆ run_gaudi()

GaudiTests.run_gaudi ( * args,
** kwargs )

(c) Copyright 2022 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #

Helper to simplify the invocation of gaudirun.py in tests.

Definition at line 11 of file __init__.py.

11def run_gaudi(*args, **kwargs):
12 """
13 Helper to simplify the invocation of gaudirun.py in tests.
14 """
15 from subprocess import run
16
17 cmd = ["gaudirun.py"]
18 cmd.extend(str(x) for x in args)
19
20 print("running", cmd)
21 return run(cmd, **kwargs)