feat(tests): Add ability to auto-accept test diff.
This commit is contained in:
parent
c63d0791d5
commit
55aed8e89d
2 changed files with 17 additions and 4 deletions
|
@ -93,9 +93,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
|
||||||
|
|
||||||
|
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
|
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
exit 1
|
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
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -39,9 +39,16 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
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
|
echo "FAILED: $testcase" | tee -a ./build/tests/pass-fail.log
|
||||||
exit 1
|
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
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue