* [PATCH] Ensure that a test is run in the trash directory
@ 2008-05-18 15:27 Alex Riesen
0 siblings, 0 replies; only message in thread
From: Alex Riesen @ 2008-05-18 15:27 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
Exit with error if cd into the "trash directory" failed (error
already reported, so just exit).
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Multi-user systems have their own kind of glitches: _someone_ removes
your files.
t/test-lib.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 5002fb0..d1018c9 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -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
--
1.5.5.1.354.g902c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-18 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-18 15:27 [PATCH] Ensure that a test is run in the trash directory Alex Riesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).