mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
fix: unit test not returning error when test fails
* fix: unit test not returning error when test fails * chore: add unit test to smoketest.yml * fix: make linter happy
This commit is contained in:
@@ -29,8 +29,6 @@ runTest() {
|
||||
function exit_with_code() {
|
||||
if [ $EXIT_CODE -ne 0 ]; then
|
||||
printf "\e[0;31m❌ Test failed\e[0m\n"
|
||||
else
|
||||
printf "\e[0;32m✅ All tests passed\e[0m\n"
|
||||
fi
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
||||
Reference in New Issue
Block a user