From 180acbbb273c101bea13b10d550a57666bd92e3a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 23 Oct 2022 10:13:52 -0700 Subject: [PATCH] Correct exit status of fish_run_tests.sh fish_run_tests.sh was failing because its final command was a variable test which was usually false. Switch to an if statement so the result is true. --- docker/context/fish_run_tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/context/fish_run_tests.sh b/docker/context/fish_run_tests.sh index 65595cba1..1763aa91a 100755 --- a/docker/context/fish_run_tests.sh +++ b/docker/context/fish_run_tests.sh @@ -13,6 +13,11 @@ then fi ninja && ninja fish_run_tests +RES=$? # Drop the user into a shell if FISH_RUN_SHELL_AFTER_TESTS is set. -test -n "$FISH_RUN_SHELL_AFTER_TESTS" && exec bash -i +if test -n "$FISH_RUN_SHELL_AFTER_TESTS"; then + bash -i +fi + +exit $RES