From b20171a41a97dbfd75a98955694eb9df5314ef27 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Mon, 5 Feb 2024 11:46:34 +0100 Subject: end-to-end tests: inherit path ... for test actions, by setting an appropriate local launcher. In this way, the tests can also be run on systems where sh does not pull in enough paths to have all the "usual" tools available. --- test/end-to-end/generated-binary/compiled.sh | 2 +- test/end-to-end/generated-binary/shell-script.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/end-to-end/generated-binary') diff --git a/test/end-to-end/generated-binary/compiled.sh b/test/end-to-end/generated-binary/compiled.sh index 56434dc8..aa90961c 100755 --- a/test/end-to-end/generated-binary/compiled.sh +++ b/test/end-to-end/generated-binary/compiled.sh @@ -34,4 +34,4 @@ bin/tool-under-test analyse --local-build-root .tool-root --dump-graph graph.jso echo echo "Building" -bin/tool-under-test install -o out --local-build-root .tool-root -J 16 2>&1 +bin/tool-under-test install -L '["env", "PATH='"${PATH}"'"]' -o out --local-build-root .tool-root -J 16 2>&1 diff --git a/test/end-to-end/generated-binary/shell-script.sh b/test/end-to-end/generated-binary/shell-script.sh index 6dfaa500..3718a0f8 100755 --- a/test/end-to-end/generated-binary/shell-script.sh +++ b/test/end-to-end/generated-binary/shell-script.sh @@ -58,6 +58,6 @@ cat > TARGETS <<'EOI' EOI -bin/tool-under-test install -o out --local-build-root .tool-root 2>&1 +bin/tool-under-test install -L '["env", "PATH='"${PATH}"'"]' -o out --local-build-root .tool-root 2>&1 grep Hello out/out.txt grep Good out/out.txt -- cgit v1.2.3