Change-Id: I7bacce4d52f2ab15c2b855ca853e5b64e13c887d
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
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
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