]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up version output test
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 26 Apr 2020 19:39:24 +0000 (21:39 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 26 Apr 2020 19:39:24 +0000 (21:39 +0200)
test/suites/base.bash

index 7c748ef930718714c48e6bc4088d7ef26896a374..cb9856aba70c6bdba6e6f899bf98d1f33ca70045 100644 (file)
@@ -20,10 +20,8 @@ base_tests() {
     TEST "Version output readable"
 
     # The exact output is not tested, but at least it's something human readable
-    # and not random memory
-    if [ $($CCACHE --version | grep -c -e "^ccache version [a-zA-Z0-9_./-]*$") -eq 1 ]; then
-        : OK
-    else
+    # and not random memory.
+    if [ $($CCACHE --version | grep -c '^ccache version [a-zA-Z0-9_./-]*$') -ne 1 ]; then
         test_failed "Unexpected output of --version"
     fi