X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Fptest-lava-wrapper-all.sh;h=2d3bbdb085a82a02c1c1aa23b913e4b68084da83;hb=f2359fb0fe11590c697cb9a7a0f42f70e59b1246;hp=48348bcde53f2afe60f2a8ccc4d9399041515049;hpb=fae09f60bfc400fa7f67a8b5e67286beb086bcf3;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/ptest-lava-wrapper-all.sh b/common/scripts/ptest-lava-wrapper-all.sh index 48348bc..2d3bbdb 100755 --- a/common/scripts/ptest-lava-wrapper-all.sh +++ b/common/scripts/ptest-lava-wrapper-all.sh @@ -7,6 +7,7 @@ if [ $? -ne 0 ] ; then else # Run ptests for specified packages lava-test-set start ptest-full + UNIT_LOG=$(ptest-runner 2> results.log ) if [ $? -eq 0 ] ; then # grep: Get only the ptests results, no log @@ -17,15 +18,16 @@ 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 else lava-test-case ptest-runner ptest-full --result fail fi + lava-test-set stop ptest-full - done + lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS fi