Small fix to change verbosity level of subtests
authorMatthew Wild <mwild1@gmail.com>
Wed, 11 Feb 2009 19:50:58 +0000
changeset 787 c4a4d5604549
parent 786 f2dc6118b3f4
child 788 b85b1dee4f4b
Small fix to change verbosity level of subtests
tests/test.lua
--- a/tests/test.lua	Wed Feb 11 19:35:48 2009 +0000
+++ b/tests/test.lua	Wed Feb 11 19:50:58 2009 +0000
@@ -163,7 +163,7 @@
 	local success, ret = pcall(f);
 	if success and verbosity >= 2 then
 		print("SUBTEST PASSED: "..(msg or "(no description)"));
-	elseif (not success) and verbosity >= 1 then
+	elseif (not success) and verbosity >= 0 then
 		print("SUBTEST FAILED: "..(msg or "(no description)"));
 		error(ret, 0);
 	end