From 155393d5bd801ce5dbd76020facecd9270679e94 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Fri, 30 Dec 2011 23:04:30 +1030 Subject: Display success when all tests pass --- tests/test.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') 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 local pass, total = run_test_summary() -print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) - -if pass ~= total then +if pass == total then + print("==> Summary: all tests succeeded") +else + print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) os.exit(1) end -- cgit v1.2.3-55-g6feb