From bbc0b1515270ef78d1aad8878c14378ad532f1ef Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Wed, 11 Oct 2023 09:26:30 +0200 Subject: [PATCH] Test: set detector model, fix inputFileS --- test/test_CLDConfig.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_CLDConfig.py b/test/test_CLDConfig.py index 4a3fa9c..fec53be 100644 --- a/test/test_CLDConfig.py +++ b/test/test_CLDConfig.py @@ -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 \ No newline at end of file + 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