mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-25 11:43:40 +08:00
180acbbb27
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.
24 lines
513 B
Bash
Executable File
24 lines
513 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script is copied into the root directory of our Docker tests.
|
|
# It is the entry point for running Docker-based tests.
|
|
|
|
cd ~/fish-build
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /fish-source
|
|
|
|
# Spawn a shell if FISH_RUN_SHELL_BEFORE_TESTS is set.
|
|
if test -n "$FISH_RUN_SHELL_BEFORE_TESTS"
|
|
then
|
|
bash -i || exit
|
|
fi
|
|
|
|
ninja && ninja fish_run_tests
|
|
RES=$?
|
|
|
|
# Drop the user into a shell if FISH_RUN_SHELL_AFTER_TESTS is set.
|
|
if test -n "$FISH_RUN_SHELL_AFTER_TESTS"; then
|
|
bash -i
|
|
fi
|
|
|
|
exit $RES
|