Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Python test fixes: GSF + EDM4hep #4088

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Examples/Python/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_gsf_debugger(tmp_path):
env = os.environ.copy()
env["PYTHONPATH"] = f"{scriptdir}:{env['PYTHONPATH']}"
gsf_result = subprocess.run(
[gsf_script], capture_output=True, cwd=tmp_path, env=env
[sys.executable, gsf_script], capture_output=True, cwd=tmp_path, env=env
)

logfile = tmp_path / "test.log"
Expand All @@ -54,6 +54,6 @@ def test_gsf_debugger(tmp_path):
assert gsf_result.returncode == 0

debugger_result = subprocess.run(
[debugger, f"--logfile={logfile}", "--nogui"], cwd=tmp_path
[sys.executable, debugger, f"--logfile={logfile}", "--nogui"], cwd=tmp_path
)
assert debugger_result.returncode == 0
1 change: 1 addition & 0 deletions Examples/Python/tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def generate_input_test_edm4hep_simhit_reader(input, output):
ddsim.gun.distribution = "eta"
ddsim.numberOfEvents = 10
ddsim.outputFile = output
ddsim.outputConfig.forceEDM4HEP = True
ddsim.run()


Expand Down
2 changes: 1 addition & 1 deletion Examples/Scripts/GsfDebugger/make_gsf_verbose_log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/python3
#!/usr/bin/env python3

from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion Examples/Scripts/GsfDebugger/src/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python3
#!/usr/bin/env python3
import argparse
import os
import sys
Expand Down
Loading