Skip to content

Commit

Permalink
kselftest: Adding new test case for sharding status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naresh Kamboju authored and roxell committed Jul 18, 2023
1 parent eadab1b commit 2e57db5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automated/linux/kselftest/kselftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e57db5

Please sign in to comment.