feat(tests): allow tests to be marked as pending

pending tests will not fail the build
This commit is contained in:
Cody McGinnis 2020-08-28 16:28:49 -04:00
parent 205a54baeb
commit 80bef160fc
3 changed files with 8 additions and 1 deletions

View file

@ -26,8 +26,15 @@ else
./build/$testcase/zephyr/zmk.exe | sed -e "s/.*> //" | tee build/$testcase/keycode_events_full.log | sed -n -f $testcase/events.patterns > build/$testcase/keycode_events.log
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log
if [ $? -gt 0 ]; then
if [ -f $testcase/pending ]; then
echo "PEND: $testcase" >> ./build/tests/pass-fail.log
exit 0
else
echo "FAIL: $testcase" >> ./build/tests/pass-fail.log
exit 1
fi
else
echo "PASS: $testcase" >> ./build/tests/pass-fail.log
exit 0
fi
fi