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

[PATCH] Kill bashizm in t/t3200-branch.sh and t/t7201-co.sh.

From
AGAdam Golebiowski <adamg@pld-linux.org>
Date
Apr 10, 2008, 07:25 UTC
Message-ID
<20080410072500.GA10188@mysza.eu.org>

On systems with /bin/sh being different than /bin/bash, make test fails due to some bash-specific constructs. This patch makes it possible to run the test-suite systems with on /bin/sh pointing to /bin/ksh.

Signed-off-by: Adam Golebiowski <adamg@pld-linux.org>
---
 t/t3200-branch.sh |    2 +-
 t/t7201-co.sh     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index cb5f7a4..e8ff82f 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -200,7 +200,7 @@ test_expect_success \
 
 test_expect_success \
     'branch from non-branch HEAD w/--track causes failure' \
-    '!(git branch --track my10 HEAD^)'
+    '! git branch --track my10 HEAD^'
 
 # Keep this test last, as it changes the current branch
 cat >expect <<EOF
diff --git a/t/t7201-co.sh b/t/t7201-co.sh
index 3111baa..51a9928 100755
--- a/t/t7201-co.sh
+++ b/t/t7201-co.sh
@@ -335,6 +335,6 @@ test_expect_success \
     git checkout -b delete-me master &&
     rm .git/refs/heads/delete-me &&
     test refs/heads/delete-me = "$(git symbolic-ref HEAD)" &&
-    !(git checkout --track -b track)'
+    ! git checkout --track -b track'
 
 test_done
-- 
1.5.4.5


-- 
 http://www.mysza.eu.org/ | Everybody needs someone sure, someone true,
   PLD Linux developer    | Everybody needs some solid rock, I know I do.
Next: Jeff King
Message 1 of 3 in “Kill bashizm in t/t3200-branch.sh and t/t7201-co.sh.”
  1. Kill bashizm in t/t3200-branch.sh and t/t7201-co.sh.Adam Golebiowski, Apr 10, 2008
  2. Jeff KingApr 10, 2008
  3. Junio C HamanoApr 10, 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.