Ensure that a test is run in the trash directory
[gitweb.git] / t / test-lib.sh
index 5002fb04b58ea91572b58dcaf7fe92342f4eeab1..d1018c99c6b58ab9cbfc4fec053fa797fdc8432a 100644 (file)
@@ -419,7 +419,7 @@ rm -fr "$test" || {
 }
 
 test_create_repo "$test"
-cd "$test"
+cd "$test" || exit 1
 
 this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')
 for skp in $GIT_SKIP_TESTS