Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored and Kethers committed Dec 29, 2023
1 parent 53d90b2 commit e51193b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions xmake/actions/test/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,9 @@ function _run_tests(tests)
cprint("${color.success}%d%%${clear} tests passed, ${color.failure}%d${clear} tests failed out of ${bright}%d${clear}, spent ${bright}%0.3fs",
passed_rate, report.total - report.passed, report.total, spent / 1000)
local return_zero = project.policy("test.return_zero_on_failure")
print("return_zero", return_zero)
if not return_zero and report.passed < report.total then
print("raise")
raise()
end
print("end")
end

-- try to build the given target
Expand Down

0 comments on commit e51193b

Please sign in to comment.