diff options
author | Klaus T. Aehlig <aehlig@linta.de> | 2024-02-06 21:32:29 +0100 |
---|---|---|
committer | Klaus T. Aehlig <aehlig@linta.de> | 2024-02-07 15:00:18 +0100 |
commit | 04062241e380aef238da70c4c89c552522087f94 (patch) | |
tree | 92c0f999595d96d94795056fe460456d20e56eff /test/utils/remote_execution/test_runner.py | |
parent | 37411da421974c32062a3aae4939e2e740f65081 (diff) | |
download | justbuild-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-x | test/utils/remote_execution/test_runner.py | 7 |
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", |