Skip to content

Commit 2e57db5

Browse files
Naresh Kambojuroxell
authored andcommitted
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 <anders.roxell@linaro.org> Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
1 parent eadab1b commit 2e57db5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

automated/linux/kselftest/kselftest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ elif [ -n "${TST_CMDFILES}" ]; then
200200
echo "============== Tests to run ==============="
201201
cat shardfile
202202
echo "===========End Tests to run ==============="
203+
if [ -s shardfile ]; then
204+
report_pass "shardfile-${test}"
205+
else
206+
report_fail "shardfile-${test}"
207+
continue
208+
fi
203209
cp shardfile kselftest-list.txt
204210
./run_kselftest.sh -c ${test} 2>&1 | tee -a "${LOGFILE}"
205211
done

0 commit comments

Comments
 (0)