aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-30 23:04:30 +1030
committerMark Pulford <mark@kyne.com.au>2011-12-30 23:04:30 +1030
commit155393d5bd801ce5dbd76020facecd9270679e94 (patch)
tree652d98bf79cfaa22e5be107f27e4cbfb5ac91917
parent7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8 (diff)
downloadlua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.tar.gz
lua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.tar.bz2
lua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.zip
Display success when all tests pass
-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