1. Stefan Saasen
  2. git

Commits

Brandon Casey  committed 525d461

t/t3800-mktag.sh: use test_must_fail rather than '!'

Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 71a5099
  • Branches master

Comments (0)

Files changed (1)

File t/t3800-mktag.sh

View file
  • Ignore whitespace
 check_verify_failure () {
 	expect="$2"
 	test_expect_success "$1" '
-		( ! git-mktag <tag.sig 2>message ) &&
-		grep -q "$expect" message
+		( test_must_fail git-mktag <tag.sig 2>message ) &&
+		grep "$expect" message
 	'
 }