[PATCH] Test framework: prettyprint the failed command.

The output from a failure case had the test description message
and the first line of the actual test script concatenated on the
same line, which was ugly.  Correct the output routine a bit to
make it more readable.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-07-22 19:09:34 -07:00 коммит произвёл Linus Torvalds
Родитель 8cc393068a
Коммит bf0dd8a8de
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -84,7 +84,9 @@ test_ok_ () {
test_failure_ () {
test_count=$(expr "$test_count" + 1)
test_failure=$(expr "$test_failure" + 1);
say "FAIL $test_count: $@"
say "FAIL $test_count: $1"
shift
echo "$@" | sed -e 's/^/ /'
test "$immediate" == "" || exit 1
}