From 2e57db579c48433de35b4adefea720ec21f380ea Mon Sep 17 00:00:00 2001 From: Naresh Kamboju Date: Wed, 12 Jul 2023 22:51:22 +0530 Subject: [PATCH] kselftest: Adding new test case for sharding status Adding new test case to check sharding status. When sharding file is empty, test will fail and exit. Suggested-by: Anders Roxell Signed-off-by: Naresh Kamboju --- automated/linux/kselftest/kselftest.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automated/linux/kselftest/kselftest.sh b/automated/linux/kselftest/kselftest.sh index 927bee715..0bccce5c2 100755 --- a/automated/linux/kselftest/kselftest.sh +++ b/automated/linux/kselftest/kselftest.sh @@ -200,6 +200,12 @@ elif [ -n "${TST_CMDFILES}" ]; then echo "============== Tests to run ===============" cat shardfile echo "===========End Tests to run ===============" + if [ -s shardfile ]; then + report_pass "shardfile-${test}" + else + report_fail "shardfile-${test}" + continue + fi cp shardfile kselftest-list.txt ./run_kselftest.sh -c ${test} 2>&1 | tee -a "${LOGFILE}" done