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

[PATCH] t3200,t7201: replace '!' with test_must_fail

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jul 22, 2008, 21:16 UTC
Message-ID
<hQLzs7uznR2DlUhN5OKjUZqeIVMnE5x0w2zVo6ve1hi_9wvQvkrJrQ@cipher.nrlssc.navy.mil>
In-Reply-To
<0GfECozN3g0ZvAESKMi76RyOVHEb2OhhwET9GWmEm7pbzYQJub50UlWpZtBa7MGn1UGb-7mzbzE@cipher.nrlssc.navy.mil>
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 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 7c583c8..7a83fbf 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^)'
+    'test_must_fail 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..9ad5d63 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)'
+    test_must_fail git checkout --track -b track'
 
 test_done
-- 
1.6.0.rc0.38.g8b8fb7
Previous: Junio C HamanoNext: Brandon Casey
Message 18 of 23 in “perl/Makefile: update NO_PERL_MAKEMAKER section”
  1. perl/Makefile: update NO_PERL_MAKEMAKER sectionBrandon Casey, Jul 22, 2008
  2. Petr BaudisJul 22, 2008
  3. Brandon CaseyJul 23, 2008
  4. Junio C HamanoJul 23, 2008
  5. Brandon CaseyJul 23, 2008
  6. t9700/test.pl: backwards compatibility improvementsBrandon Casey, Jul 22, 2008
  7. Junio C HamanoJul 23, 2008
  8. Brandon CaseyJul 24, 2008
  9. t4116-apply-reverse.sh: use $TAR rather than tarBrandon Casey, Jul 22, 2008
  10. Set TAR in t/Makefile and in t4116-apply-reverse.shStephan Beyer, Jul 25, 2008
  11. Miklos VajnaJul 25, 2008
  12. Stephan BeyerJul 25, 2008
  13. Junio C HamanoJul 25, 2008
  14. Stephan BeyerJul 25, 2008
  15. Junio C HamanoJul 25, 2008
  16. Stephan BeyerJul 25, 2008
  17. Junio C HamanoJul 25, 2008
  18. t3200,t7201: replace '!' with test_must_failBrandon Casey, Jul 22, 2008
  19. t/: Replace diff [-u|-U0] with test_cmp to allow compilation with old diffBrandon Casey, Jul 22, 2008
  20. Miklos VajnaJul 24, 2008
  21. Brandon CaseyJul 24, 2008
  22. t7502-commit.sh: rearrange test to make more portableBrandon Casey, Jul 22, 2008
  23. t/t4202-log.sh: add newline at end of fileBrandon Casey, Jul 22, 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.