Skip to content

Commit

Permalink
tests/psoc6: Test exit on failure.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <[email protected]>
  • Loading branch information
NikhitaR-IFX committed Feb 21, 2024
1 parent 8ac1561 commit 2f67193
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/psoc6/run_psoc6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,18 @@ if [ ${fs} -eq 1 ]; then
chmod 777 ./psoc6/test_scripts/fs.py

python3 ./psoc6/test_scripts/fs.py ${device0} 0
if [ $? -ne 0 ]; then
echo "FS test failed"
exit 1
fi

# On device file saving tests for medium and large size takes considerable amount of time. Hence only when needed, this should be triggered.
if [ ${afs} -eq 1 ]; then
python3 ./psoc6/test_scripts/fs.py ${device0} 1
python3 ./psoc6/test_scripts/fs.py ${device0} 1
if [ $? -ne 0 ]; then
echo "FS test failed"
exit 1
fi
fi

fi
Expand Down

0 comments on commit 2f67193

Please sign in to comment.