mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
feat(tests): Add ability to auto-accept test diff.
This commit is contained in:
committed by
Pete Johanson
parent
c63d0791d5
commit
55aed8e89d
@@ -93,8 +93,14 @@ if [ $? -gt 0 ]; then
|
|||||||
echo "PENDING: $testcase" | tee -a ./build/tests/pass-fail.log
|
echo "PENDING: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
|
||||||
exit 1
|
if [ -n "${ZMK_TESTS_AUTO_ACCEPT}" ]; then
|
||||||
|
echo "Auto-accepting failure for $testcase"
|
||||||
|
cp build/$testcase/filtered_output.log $testcase/snapshot.log
|
||||||
|
else
|
||||||
|
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "PASS: $testcase" | tee -a ./build/tests/pass-fail.log
|
echo "PASS: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
|
|||||||
@@ -39,8 +39,15 @@ if [ $? -gt 0 ]; then
|
|||||||
echo "PENDING: $testcase" | tee -a ./build/tests/pass-fail.log
|
echo "PENDING: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
|
||||||
exit 1
|
|
||||||
|
if [ -n "${ZMK_TESTS_AUTO_ACCEPT}" ]; then
|
||||||
|
echo "Auto-accepting failure for $testcase"
|
||||||
|
cp build/$testcase/keycode_events.log $testcase/keycode_events.snapshot
|
||||||
|
else
|
||||||
|
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "PASS: $testcase" | tee -a ./build/tests/pass-fail.log
|
echo "PASS: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
|
|||||||
Reference in New Issue
Block a user