Skip to content

Commit

Permalink
Test: set detector model, fix inputFileS
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored and Zehvogel committed Oct 11, 2023
1 parent 9eb44a4 commit afba8bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_CLDConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ def _CLDConfig(test_fun):

@_CLDConfig
def test_lcio_edm4hep():
res = subprocess.run("k4run --inputFile=../test.slcio --outputBasename=rec_test CLDReconstruction.py".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
assert res.returncode == 0, res.stdout
command = "k4run --inputFiles=../test.slcio --outputBasename=rec_test CLDReconstruction.py".split()
detectorModel = os.path.join(os.environ["K4GEO"], "FCCee/CLD/compact/FCCee_o1_v04/FCCee_o1_v04.xml")
command.extend(["--GeoSvc.detectors", detectorModel])
res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
assert res.returncode == 0, res.stdout

0 comments on commit afba8bb

Please sign in to comment.