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/built-in-rules/generic_out_dirs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/end-to-end/built-in-rules') diff --git a/test/end-to-end/built-in-rules/generic_out_dirs.sh b/test/end-to-end/built-in-rules/generic_out_dirs.sh index afa49d19..c4dd81da 100755 --- a/test/end-to-end/built-in-rules/generic_out_dirs.sh +++ b/test/end-to-end/built-in-rules/generic_out_dirs.sh @@ -47,7 +47,7 @@ cat < TARGETS EOF echo "read_out_dirs" >&2 -bin/tool-under-test build --local-build-root lcl-build read_out_dirs +bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build read_out_dirs echo "done" >&2 echo "missing_outs_and_out_dirs" >&2 @@ -64,7 +64,7 @@ echo "out_dirs_contains_a_file" >&2 # the analysis phase should run fine bin/tool-under-test analyse --local-build-root lcl-build out_dirs_contains_a_file echo "analysis ok" >&2 -bin/tool-under-test build --local-build-root lcl-build out_dirs_contains_a_file && exit 1 || : +bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build out_dirs_contains_a_file && exit 1 || : echo "done" >&2 echo "outs_contains_a_dir" >&2 @@ -73,7 +73,7 @@ echo "outs_contains_a_dir" >&2 # anlysis should run fine bin/tool-under-test analyse --local-build-root lcl-build outs_contains_a_dir echo "analysis ok" >&2 -bin/tool-under-test build --local-build-root lcl-build -f test.log outs_contains_a_dir && exit 1 || : +bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build -f test.log outs_contains_a_dir && exit 1 || : # grep 'ERROR' test.log | grep 'output file' echo "done" >&2 -- cgit v1.2.3