Merge branch 'jh/use-test-must-fail'
authorJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:17:17 +0000 (12:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:17:17 +0000 (12:17 -0700)
* jh/use-test-must-fail:
Convert "! git" to "test_must_fail git"

1  2 
t/t3301-notes.sh
diff --combined t/t3301-notes.sh
index 1d82f79ee07e8f9317bc23c49cdf941af36ce3ff,421c9884da8cb1c35f5c20a9dd4ab34abb8ff185..96b75813d73b3fd34a3c96aa9e977594319adb1d
@@@ -299,7 -299,7 +299,7 @@@ cat expect-F >> expect-rm-
  test_expect_success 'verify note removal with -F /dev/null' '
        git log -4 > output &&
        test_cmp expect-rm-F output &&
-       ! git notes show
+       test_must_fail git notes show
  '
  
  test_expect_success 'do not create empty note with -m "" (setup)' '
  test_expect_success 'verify non-creation of note with -m ""' '
        git log -4 > output &&
        test_cmp expect-rm-F output &&
-       ! git notes show
+       test_must_fail git notes show
  '
  
  cat > expect-combine_m_and_F << EOF
@@@ -357,7 -357,7 +357,7 @@@ cat expect-multiline >> expect-rm-remov
  test_expect_success 'verify note removal with "git notes remove"' '
        git log -4 > output &&
        test_cmp expect-rm-remove output &&
-       ! git notes show HEAD^
+       test_must_fail git notes show HEAD^
  '
  
  cat > expect << EOF
@@@ -693,11 -693,7 +693,11 @@@ test_expect_success 'create note from n
        git add a10 &&
        test_tick &&
        git commit -m 10th &&
 -      test_must_fail MSG="yet another note" git notes add -c deadbeef &&
 +      (
 +              MSG="yet another note" &&
 +              export MSG &&
 +              test_must_fail git notes add -c deadbeef
 +      ) &&
        test_must_fail git notes list HEAD
  '