tests: simplify "missing PREREQ" message
commit477e5a805ef9551634ed9cd85776680510a50fb3
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 24 Aug 2010 07:34:10 +0000 (24 02:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Aug 2010 18:54:10 +0000 (24 11:54 -0700)
tree3b7353c407eca167528b178a951fb66e48438306
parentcc17e9f885e3eee9901f7dab5b6bf7a80b315614
tests: simplify "missing PREREQ" message

When a test has no prerequisites satisfied (the usual case), instead
of "missing THING of THING", just say "missing THING".  This does not
affect the output when a test is skipped due to a missing
prerequisites if another prerequisite is satisfied.

For example: instead of

 ok 8 # skip notes work (missing EXPENSIVE of EXPENSIVE)
 ok 9 # skip notes timing with /usr/bin/time (missing EXPENSIVE of USR_BIN_TIME,EXPENSIVE)

write

 ok 8 # skip notes work (missing EXPENSIVE)
 ok 9 # skip notes timing with /usr/bin/time (missing EXPENSIVE of USR_BIN_TIME,EXPENSIVE)

Cc: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh