From 9c3e0e901d646b8c6093277f2c6959fb4d3e6b5f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sat, 1 May 2021 19:50:53 -0400 Subject: Revert printing test output to stdout. This was not working as hoped in a headless test environment. --- test/test.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index 60679eef..09caf59e 100644 --- a/test/test.lua +++ b/test/test.lua @@ -4835,11 +4835,7 @@ end assert(not WIN32 and not OSX, 'Test suite currently only runs on Linux') local TEST_OUTPUT_BUFFER = '[Test Output]' -local print_ = print -function print(...) - ui._print(TEST_OUTPUT_BUFFER, ...) - print_(...) -end +function print(...) ui._print(TEST_OUTPUT_BUFFER, ...) end -- Clean up after a previously failed test. local function cleanup() while #_BUFFERS > 1 do @@ -4866,7 +4862,7 @@ local function include_test(name) if patt:find('^%-') then if name:find(patt:sub(2)) then return false end excludes = true - elseif patt ~= 'quit' then + else if name:find(patt) then include = true end includes = true end @@ -4932,5 +4928,3 @@ else buffer:append_text('No LuaCov coverage to report.') end buffer:set_save_point() - -if arg[#arg] == 'quit' then quit() end -- cgit v1.2.3