From b1e25f43b1f4d21958fc6ee0d29cd7a931c457b3 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 29 Jul 2014 15:50:55 -0400 Subject: [PATCH] Test framework no longer errors when test is not found --- tests/testfx.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/testfx.lua b/tests/testfx.lua index c9962f68..6fd67435 100644 --- a/tests/testfx.lua +++ b/tests/testfx.lua @@ -411,11 +411,13 @@ end function runsuite(suitename, suitetests, testname) - if testname then - runtest(suitename, suitetests, testname, suitetests[testname]) - elseif suitetests then - for testname, testfunc in pairs(suitetests) do - runtest(suitename, suitetests, testname, testfunc) + if suitetests then + if testname then + runtest(suitename, suitetests, testname, suitetests[testname]) + else + for testname, testfunc in pairs(suitetests) do + runtest(suitename, suitetests, testname, testfunc) + end end end end