From: Dave Wallace Date: Tue, 7 Jan 2020 15:32:47 +0000 (+0000) Subject: jjb/vpp: fix bad test for makefile target X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=72f063a188fe9cb3c4619067585f8460c07a87ca;p=ci-management.git jjb/vpp: fix bad test for makefile target Change-Id: I78f021b1c672a53bcb54e74da16b98730ae87ca8 Signed-off-by: Dave Wallace --- diff --git a/jjb/vpp/include-raw-vpp-checkstyle.sh b/jjb/vpp/include-raw-vpp-checkstyle.sh index bc1e40871..7c520dd99 100644 --- a/jjb/vpp/include-raw-vpp-checkstyle.sh +++ b/jjb/vpp/include-raw-vpp-checkstyle.sh @@ -1,7 +1,7 @@ #!/bin/bash # jjb/vpp/include-raw-vpp-checkstyle.sh -if [ "$(grep -E '^checkstyle:' Makefile)" = "checkstyle:" ] +if [ -n "$(grep -E '^checkstyle:' Makefile)" ] then make checkstyle else diff --git a/jjb/vpp/include-raw-vpp-test-checkstyle.sh b/jjb/vpp/include-raw-vpp-test-checkstyle.sh index 6cb6fac3e..bdc843114 100644 --- a/jjb/vpp/include-raw-vpp-test-checkstyle.sh +++ b/jjb/vpp/include-raw-vpp-test-checkstyle.sh @@ -1,9 +1,9 @@ #!/bin/bash # jjb/vpp/include-raw-vpp-test-checkstyle.sh -if [ "$(grep -E '^test-checkstyle:' Makefile)" = "test-checkstyle:" ] +if [ -n "$(grep -E '^test-checkstyle:' Makefile)" ] then make test-checkstyle else - echo "Can't find test-checkstyle target in Makefile - skipping test checkstyle" + echo "Can't find test-checkstyle target in Makefile - skipping test-checkstyle" fi