summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-08 22:37:59 +0800
committerruki <[email protected]>2024-01-08 22:37:59 +0800
commit94b1ac8bf678cf5de937be08073bd13e534728c3 (patch)
tree614d41538ce599bbdc931e548896731874e1a875
parent5e4362a821149be38a5759a5cace6bf728f6104c (diff)
fix test output #4571
-rw-r--r--xmake/actions/test/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua
index 713fca7d3..ad68ece6d 100644
--- a/xmake/actions/test/main.lua
+++ b/xmake/actions/test/main.lua
@@ -283,7 +283,7 @@ function _run_tests(tests)
local padding = maxwidth - #testinfo.name
cprint(progress_format .. "%s%s .................................... " .. status_color .. "%s${clear} ${bright}%0.3fs",
progress, testinfo.name, (" "):rep(padding), passed and "passed" or "failed", spent / 1000)
- if not passed and output and (option.get("verbose") or option.get("diagnosis")) then
+ if output and (option.get("verbose") or option.get("diagnosis")) then
cprint(output)
end