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 <[email protected]>
Signed-off-by: Naresh Kamboju <[email protected]>
  • Loading branch information
Naresh Kamboju committed Jul 13, 2023
1 parent 4859e13 commit 8bc9cde
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-${TST_CMDFILES}"
else
report_fail "shardfile-${TST_CMDFILES}"
exit 1
fi
cp shardfile kselftest-list.txt
./run_kselftest.sh -c ${test} 2>&1 | tee -a "${LOGFILE}"
done
Expand Down

0 comments on commit 8bc9cde

Please sign in to comment.