git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Ensure that a test is run in the trash directory

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 18, 2008, 15:27 UTC
Message-ID
<20080518152700.GC3058@steel.home>

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
Message 1 of 1 in “Ensure that a test is run in the trash directory”
  1. Ensure that a test is run in the trash directoryAlex Riesen, May 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.