-
|
I am using a phony target('parity_test')
set_kind('phony')
add_tests('default')
on_test(function (target, opt)
-- TODO: How to check for `xmake test --verbose`?
local verbose = true
redir = {}
if not verbose then
-- TODO: Can you portably redirect to /dev/null instead?
redir['stdout'] = os.tmpfile()
end
os.execv('pytest', { '-v' }, redir)
return true
end) |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Oct 23, 2025
Replies: 1 comment
-
import("core.base.option")
if option.get("verbose") then
endor try dev version. #6952
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dkaszews
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or try dev version. #6952
{realtime_output = true}