From 04062241e380aef238da70c4c89c552522087f94 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Tue, 6 Feb 2024 21:32:29 +0100 Subject: 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. --- test/utils/remote_execution/test_runner.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/utils/remote_execution/test_runner.py') 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", -- cgit v1.2.3