From 28f628e0a5bfacc468b6ff88aaee887af8b9b52e Mon Sep 17 00:00:00 2001 From: Stehsaer Date: Wed, 4 Mar 2026 21:33:16 +0800 Subject: fix test output --- xmake/actions/test/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index 9162da829..4cfde34ba 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -318,7 +318,9 @@ function _show_output(testinfo, kind) io.writefile(logfile, output) print("%s: %s", kind, logfile) elseif option.get("verbose") then - cprint("%s: %s", kind, output) + local msg = format("%s: %s", kind, output) + io.write(msg) + print() end end end -- cgit v1.3.1 From baa3c387ab242c16fd1d9c05ee6da7e3be4a5e4f Mon Sep 17 00:00:00 2001 From: Stehsaer Date: Wed, 4 Mar 2026 21:40:00 +0800 Subject: remove intermediate variable --- xmake/actions/test/main.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index 4cfde34ba..70f8236d7 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -318,8 +318,7 @@ function _show_output(testinfo, kind) io.writefile(logfile, output) print("%s: %s", kind, logfile) elseif option.get("verbose") then - local msg = format("%s: %s", kind, output) - io.write(msg) + io.write(kind, ": ", output, "\n") print() end end -- cgit v1.3.1 From d5b63d9e2d554a802a23b7d179b9c910a51a6745 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 4 Mar 2026 21:52:49 +0800 Subject: Refactor output logging for verbose option --- xmake/actions/test/main.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index 70f8236d7..46459d648 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -318,8 +318,7 @@ function _show_output(testinfo, kind) io.writefile(logfile, output) print("%s: %s", kind, logfile) elseif option.get("verbose") then - io.write(kind, ": ", output, "\n") - print() + io.write(kind .. ": " .. output .. "\n") end end end -- cgit v1.3.1