From: Jan-Simon Moeller Date: Mon, 8 Oct 2018 09:16:07 +0000 (+0000) Subject: Merge "yocto-ptest: fix ptest-runner failure case" X-Git-Tag: 6.99.1~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=3719904371e5005e69f2bb668332882a954b2eb9;hp=9e4c15e24032c8f0c209c1738ade6be6c878618f;p=src%2Fqa-testdefinitions.git Merge "yocto-ptest: fix ptest-runner failure case" --- diff --git a/common/scripts/ptest-lava-wrapper-all.sh b/common/scripts/ptest-lava-wrapper-all.sh index dd726aa..2d3bbdb 100755 --- a/common/scripts/ptest-lava-wrapper-all.sh +++ b/common/scripts/ptest-lava-wrapper-all.sh @@ -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 diff --git a/common/scripts/ptest-lava-wrapper.sh b/common/scripts/ptest-lava-wrapper.sh index 0e9ef19..d3ce449 100755 --- a/common/scripts/ptest-lava-wrapper.sh +++ b/common/scripts/ptest-lava-wrapper.sh @@ -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