summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-07 14:11:39 +0800
committerruki <[email protected]>2023-10-07 14:11:39 +0800
commite230939c931a7b8b96da0c21f6c2d11c7fde2226 (patch)
treea983683836d9b8dfd3e6e487507ce03f255eb053
parentf116670bc4f6fc620134e6489391b3e8bd87d3e4 (diff)
improve output
-rw-r--r--tests/actions/test/src/test_5.cpp2
-rw-r--r--xmake/actions/test/main.lua8
2 files changed, 3 insertions, 7 deletions
diff --git a/tests/actions/test/src/test_5.cpp b/tests/actions/test/src/test_5.cpp
index f454e99f3..dad841287 100644
--- a/tests/actions/test/src/test_5.cpp
+++ b/tests/actions/test/src/test_5.cpp
@@ -5,6 +5,6 @@ using namespace std;
int main(int argc, char** argv)
{
char const* arg = argc > 1? argv[1] : "xmake";
- cout << "hello " << arg << endl;
+ cout << "hello2 " << arg << endl;
return 0;
}
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua
index a566a4bc6..d9dcf1936 100644
--- a/xmake/actions/test/main.lua
+++ b/xmake/actions/test/main.lua
@@ -59,14 +59,10 @@ function _do_test_target(target, opt)
local errdata = os.isfile(errfile) and io.readfile(errfile)
errors = errdata or errors
if not errors or #errors == 0 then
- local cmd = targetfile
- if #runargs > 0 then
- cmd = cmd .. " " .. os.args(runargs)
- end
if ok ~= nil then
- errors = string.format("run %s failed, exit code: %d", cmd, ok)
+ errors = string.format("run failed, exit code: %d", ok)
else
- errors = string.format("run %s failed, exit error: %s", cmd, syserrors and syserrors or "unknown reason")
+ errors = string.format("run failed, exit error: %s", syserrors and syserrors or "unknown reason")
end
end
end