]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Add version output on failure (#1134)
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Thu, 18 Aug 2022 17:16:35 +0000 (20:16 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Aug 2022 17:16:35 +0000 (19:16 +0200)
test/suites/base.bash

index c7cf998bbdb04a2aabbbc4964762bae4b93d4c21..12b874f30ca589ea8850fbfcd5428a86c682b85d 100644 (file)
@@ -60,7 +60,7 @@ base_tests() {
     # and not random memory.
     local version_pattern=$'^ccache version [a-zA-Z0-9_./+-]*\r?$'
     if [ $($CCACHE --version | grep -E -c "$version_pattern") -ne 1 ]; then
-        test_failed "Unexpected output of --version"
+        test_failed "Unexpected output of --version. Output is '$($CCACHE --version)'"
     fi
 
     # -------------------------------------------------------------------------