aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-05-01 19:50:53 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-05-01 19:50:53 -0400
commit9c3e0e901d646b8c6093277f2c6959fb4d3e6b5f (patch)
tree3ac42da88a202251e1f8eccb488ab3a72b869a88
parentf5c9913478b3a6c52327b739be7e48d55fb7d09a (diff)
Revert printing test output to stdout.
This was not working as hoped in a headless test environment.
-rw-r--r--test/test.lua10
1 files changed, 2 insertions, 8 deletions
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