Browse Source

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

pending tests will not fail the build
xmkb
Cody McGinnis 4 years ago
parent
commit
80bef160fc
  1. 9
      app/run-test.sh
  2. 0
      app/tests/momentary-layer/early-key-release/pending
  3. 0
      app/tests/toggle-layer/early-key-release/pending

9
app/run-test.sh

@ -26,8 +26,15 @@ else @@ -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
echo "FAIL: $testcase" >> ./build/tests/pass-fail.log
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

0
app/tests/toggle-layer/early-key-release/pending

Loading…
Cancel
Save