Small fix to change verbosity level of subtests
authorMatthew Wild <mwild1@gmail.com>
Wed, 11 Feb 2009 19:50:58 +0000 (19:50 +0000)
committerMatthew Wild <mwild1@gmail.com>
Wed, 11 Feb 2009 19:50:58 +0000 (19:50 +0000)
tests/test.lua

index 4d5fe3e8789a3cdb87b352c13213c890dcbf4c5f..3b99431477f34a9a4b448ad6f024d90d71bc46e2 100644 (file)
@@ -163,7 +163,7 @@ function runtest(f, msg)
        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