summaryrefslogtreecommitdiff
path: root/test/utils/remote_execution/test_runner.py
diff options
context:
space:
mode:
authorKlaus T. Aehlig <aehlig@linta.de>2024-02-06 21:32:29 +0100
committerKlaus T. Aehlig <aehlig@linta.de>2024-02-07 15:00:18 +0100
commit04062241e380aef238da70c4c89c552522087f94 (patch)
tree92c0f999595d96d94795056fe460456d20e56eff /test/utils/remote_execution/test_runner.py
parent37411da421974c32062a3aae4939e2e740f65081 (diff)
downloadjustbuild-04062241e380aef238da70c4c89c552522087f94.tar.gz
graph_traverser test: provide env trough launcher
... instead of hard-coding it in the example graphs. In this way, we can honor a provided PATH.
Diffstat (limited to 'test/utils/remote_execution/test_runner.py')
-rwxr-xr-xtest/utils/remote_execution/test_runner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/utils/remote_execution/test_runner.py b/test/utils/remote_execution/test_runner.py
index 948b626e..8c22c99e 100755
--- a/test/utils/remote_execution/test_runner.py
+++ b/test/utils/remote_execution/test_runner.py
@@ -56,9 +56,16 @@ if os.path.exists(REMOTE_INFO):
print(f"Warning: removing unexpected info file {REMOTE_INFO}")
os.remove(REMOTE_INFO)
+PATH=subprocess.run(
+ ["env", "--", "sh", "-c", "echo -n $PATH"],
+ stdout=subprocess.PIPE,
+).stdout.decode('utf-8')
+
remote_cmd = [
"./bin/just",
"execute",
+ "-L",
+ json.dumps(["env", "PATH=" + PATH]),
"--info-file",
REMOTE_INFO,
"--local-build-root",