]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix printing of failure reason with glob characters
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Jan 2018 14:08:29 +0000 (15:08 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 10 Jan 2018 19:58:32 +0000 (20:58 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 8f6d6c46312c0e5ff5072e901ba26d2f0a4a64d9..6fbc1ca9316c7123470a9a7fc5d5fe057768053b 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -37,7 +37,7 @@ test_failed() {
     echo
     echo "Test suite:     $(bold $CURRENT_SUITE)"
     echo "Test case:      $(bold $CURRENT_TEST)"
-    echo "Failure reason: $(red $1)"
+    echo "Failure reason: $(red "$1")"
     echo
     echo "ccache -s:"
     $CCACHE -s