test-lib: set $TRASH_DIRECTORY earlier
[gitweb.git] / t / lib-git-daemon.sh
index edbea2d986134f36b86e044f307abae1457f8165..f98de95c15b14aa4030c65d26e6270dc06088372 100644 (file)
@@ -92,7 +92,7 @@ stop_git_daemon() {
        kill "$GIT_DAEMON_PID"
        wait "$GIT_DAEMON_PID" >&3 2>&4
        ret=$?
-       if test_match_signal 15 $?
+       if ! test_match_signal 15 $ret
        then
                error "git daemon exited with status: $ret"
        fi