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.
This commit is contained in:
ridiculousfish 2022-10-23 10:13:52 -07:00
parent 54a60d8dab
commit 180acbbb27

View file

@ -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