diff --git a/helpers/assert_mmc_present b/helpers/assert_mmc_present index 2d7728f..a8b035a 100755 --- a/helpers/assert_mmc_present +++ b/helpers/assert_mmc_present @@ -1,5 +1,7 @@ #!/bin/sh +. bootrr + TEST_CASE_ID="$1" DEVICE="$2" @@ -9,9 +11,7 @@ if [ -z "${TEST_CASE_ID}" -o -z "${DEVICE}" ]; then fi if [ -L /sys/bus/mmc/devices/${DEVICE} ]; then - TEST_RESULT="pass" -else - TEST_RESULT="fail" + test_report_exit pass fi -lava-test-case "${TEST_CASE_ID}" --result ${TEST_RESULT} +test_report_exit fail diff --git a/helpers/assert_partition_found b/helpers/assert_partition_found index eac9759..e67b199 100755 --- a/helpers/assert_partition_found +++ b/helpers/assert_partition_found @@ -1,5 +1,7 @@ #!/bin/sh +. bootrr + TEST_CASE_ID="$1" PARTITION="$2" @@ -9,9 +11,7 @@ if [ -z "${TEST_CASE_ID}" -o -z "${PARTITION}" ]; then fi if [ -L /dev/disk/by-partlabel/${PARTITION} ]; then - TEST_RESULT="pass" -else - TEST_RESULT="fail" + test_report_exit pass fi -lava-test-case "${TEST_CASE_ID}" --result ${TEST_RESULT} +test_report_exit fail