From efe5691ee5b4c012369b1ea723ef60a3414d6e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Wed, 20 Jan 2021 16:10:17 -0600 Subject: [PATCH] helpers: assert_{mmc,partition} use test_report_exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aníbal Limón --- helpers/assert_mmc_present | 8 ++++---- helpers/assert_partition_found | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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