diff --git a/script/integration b/script/integration index 7ab1d25c..caf24673 100755 --- a/script/integration +++ b/script/integration @@ -6,7 +6,7 @@ SHUTDOWN_LFS=no SHOW_LOGS=yes atexit() { - if [ "$SHOW_LOGS" == "yes" ]; then + if [[ "$SHOW_LOGS" == "yes" ]]; then if [ -s "$REMOTEDIR/gitserver.log" ]; then echo "" echo "gitserver.log:" @@ -26,6 +26,8 @@ trap "atexit" EXIT if [ -s "$LFS_URL_FILE" ]; then SHOW_LOGS=no echo "$LFS_URL_FILE still exists!" + echo "Confirm other tests are done, and run:" + echo " $ curl $(cat "$LFS_URL_FILE")/shutdown" exit 1 fi diff --git a/test/testhelpers.sh b/test/testhelpers.sh index 552efef5..764bddf2 100644 --- a/test/testhelpers.sh +++ b/test/testhelpers.sh @@ -107,7 +107,7 @@ setup() { shutdown() { rm -rf "$TRASHDIR" - if [ "$SHUTDOWN_LFS" == "no" ]; then + if [[ "$SHUTDOWN_LFS" == "no" ]]; then exit 0 fi