tests: tests.sh do not grep on inexisting file to avoid warnings
authorJean Privat <jean@pryen.org>
Mon, 29 Jun 2015 21:47:57 +0000 (17:47 -0400)
committerJean Privat <jean@pryen.org>
Mon, 29 Jun 2015 21:47:57 +0000 (17:47 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index 3bf20dc..25f7c53 100755 (executable)
@@ -382,6 +382,7 @@ skip_exec()
        test "$noskip" = true && return 1
        for savdir in $savdirs .; do
                local f="$savdir/exec.skip"
+               test -f "$f" || continue
                if echo "$1" | grep -f "$f" >/dev/null 2>&1; then
                        echo -n "_ no exec by $f; "
                        return 0
@@ -395,6 +396,7 @@ skip_cc()
        test "$noskip" = true && return 1
        for savdir in $savdirs .; do
                local f="$savdir/cc.skip"
+               test -f "$f" || continue
                if echo "$1" | grep -f "$f" >/dev/null 2>&1; then
                        return 0
                fi