feat(tests): allow tests to be marked as pending
pending tests will not fail the build
This commit is contained in:
parent
205a54baeb
commit
80bef160fc
3 changed files with 8 additions and 1 deletions
|
@ -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
|
0
app/tests/momentary-layer/early-key-release/pending
Normal file
0
app/tests/momentary-layer/early-key-release/pending
Normal file
0
app/tests/toggle-layer/early-key-release/pending
Normal file
0
app/tests/toggle-layer/early-key-release/pending
Normal file
Loading…
Reference in a new issue