tests: make test_might_fail fail on missing commands
commitd0b8a61742714b93b614f9823491a7557879dfb9
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 31 Aug 2010 17:26:57 +0000 (31 12:26 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Aug 2010 18:40:20 +0000 (31 11:40 -0700)
tree1546925934cd9be44f0dc8c286bb42237d14b34d
parent5c8e141414058430155ea179bce38ceb8d750c5d
tests: make test_might_fail fail on missing commands

Detect and report hard-to-notice spelling mistakes like

 test_might_fail "git config --unset whatever"

(the extra quotes prevent the shell from running git as intended;
instead, the shell looks for a "git config --unset whatever" file).

Cc: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh