{"thread":{"id":"1311","subject":"[PATCH] Test framework: prettyprint the failed command.","startedAt":"2005-07-23T02:09:34Z","lastAt":"2005-07-23T02:09:34Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6363","messageId":"7vek9q6zoh.fsf@assigned-by-dhcp.cox.net","threadId":"1311","inReplyTo":null,"subject":"[PATCH] Test framework: prettyprint the failed command.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-07-23T02:09:34Z","receivedAt":"2005-07-23T02:09:34Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The output from a failure case had the test description message\nand the first line of the actual test script concatenated on the\nsame line, which was ugly.  Correct the output routine a bit to\nmake it more readable.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n t/test-lib.sh |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\nba7b8ae0b3af6040c8af2f4e381bd4c30ab9cd24\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -84,7 +84,9 @@ test_ok_ () {\n test_failure_ () {\n \ttest_count=$(expr \"$test_count\" + 1)\n \ttest_failure=$(expr \"$test_failure\" + 1);\n-\tsay \"FAIL $test_count: $@\"\n+\tsay \"FAIL $test_count: $1\"\n+\tshift\n+\techo \"$@\" | sed -e 's/^/\t/'\n \ttest \"$immediate\" == \"\" || exit 1\n }\n \n"}]}