aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 6a1a8a2..bb696a2 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -247,9 +247,10 @@ end
247 247
248local pass, total = run_test_summary() 248local pass, total = run_test_summary()
249 249
250print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) 250if pass == total then
251 251 print("==> Summary: all tests succeeded")
252if pass ~= total then 252else
253 print(string.format("==> Summary: %d/%d tests failed", total - pass, total))
253 os.exit(1) 254 os.exit(1)
254end 255end
255 256