From 89d5dd4e2f47186687d70223847cec8ec3fb16dd Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 7 May 2013 16:55:03 -0500 Subject: tests: at-combinations: improve nonsense() In some circumstances 'git log' might fail, but not because the @ parsing failed. For example: 'git rev-parse' might succeed and return a bad object, and then 'git log' would fail. The layer we want to test is revision parsing, so let's test that directly. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano diff --git a/t/t1508-at-combinations.sh b/t/t1508-at-combinations.sh index 1126125..d45a410 100755 --- a/t/t1508-at-combinations.sh +++ b/t/t1508-at-combinations.sh @@ -18,7 +18,7 @@ check() { nonsense() { test_expect_${2:-success} "$1 is nonsensical" " - test_must_fail git log -1 '$1' + test_must_fail git rev-parse --verify '$1' " } -- cgit v0.10.2-6-g49f6