yocto-ptest: fix bash syntax error 71/16971/1
authorKevin Hilman <khilman@baylibre.com>
Sat, 6 Oct 2018 15:18:58 +0000 (17:18 +0200)
committerKevin Hilman <khilman@baylibre.com>
Sat, 6 Oct 2018 15:19:18 +0000 (17:19 +0200)
Change-Id: I7bacce4d52f2ab15c2b855ca853e5b64e13c887d
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
common/scripts/ptest-lava-wrapper-all.sh
common/scripts/ptest-lava-wrapper.sh

index dd726aa..2d3bbdb 100755 (executable)
@@ -18,7 +18,7 @@ else
             test_pass=$(echo "$UNIT_LOG" | grep -e 'PASS' | wc -l)
             test_fail=$(echo "$UNIT_LOG" | grep -e 'FAIL' | wc -l)
             lava-test-case passed-commands --result PASS --measurement $test_pass --units pass
-            if ! [ x"0" = x"$test_fail"] ; then
+            if ! [ x"0" = x"$test_fail" ] ; then
               lava-test-case failed-commands --result FAIL --measurement $test_fail --units fail
               echo "$UNIT_LOG" | grep -e 'FAIL'
             fi
index 3b186b4..7391d89 100755 (executable)
@@ -20,7 +20,7 @@ else
             test_pass=$(echo "$UNIT_LOG" | grep -e 'PASS' | wc -l)
             test_fail=$(echo "$UNIT_LOG" | grep -e 'FAIL' | wc -l)
             lava-test-case ${unit}-passed-commands --result PASS --measurement $test_pass --units pass
-            if ! [ x"0" = x"$test_fail"] ; then
+            if ! [ x"0" = x"$test_fail" ] ; then
               lava-test-case ${unit}-failed-commands --result FAIL --measurement $test_fail --units fail
               echo "$UNIT_LOG" | grep -e 'FAIL'
             fi