aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/run-test.sh
diff options
context:
space:
mode:
authorokke <[email protected]>2021-12-11 20:41:20 +0100
committerPete Johanson <[email protected]>2022-01-04 23:59:25 -0500
commitd59797ba13f623b6654e81cd9ee65ffca272d2d9 (patch)
tree30119a5c27d532343a026a70638b332d4eb753c3 /app/run-test.sh
parentf767abe13647d1bf6b05a1b67baf615f58fc046c (diff)
downloadzmk-d59797ba13f623b6654e81cd9ee65ffca272d2d9.tar.gz
zmk-d59797ba13f623b6654e81cd9ee65ffca272d2d9.zip
test: Change length of fail and pend messages
This makes scanning the output from "west test" easier, as the different states get different output lengths.
Diffstat (limited to 'app/run-test.sh')
-rwxr-xr-xapp/run-test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/run-test.sh b/app/run-test.sh
index b39f2db20e..cbc6fbbf79 100755
--- a/app/run-test.sh
+++ b/app/run-test.sh
@@ -28,17 +28,17 @@ echo "Running $testcase:"
west build -d build/$testcase -b native_posix -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1
if [ $? -gt 0 ]; then
- echo "FAIL: $testcase did not build" >> ./build/tests/pass-fail.log
+ echo "FAILED: $testcase did not build" >> ./build/tests/pass-fail.log
exit 1
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
+ echo "PENDING: $testcase" >> ./build/tests/pass-fail.log
exit 0
else
- echo "FAIL: $testcase" >> ./build/tests/pass-fail.log
+ echo "FAILED: $testcase" >> ./build/tests/pass-fail.log
exit 1
fi
else