diff options
| author | ruki <[email protected]> | 2023-10-07 21:50:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-07 21:50:37 +0800 |
| commit | 870bb0fc0506a722c07bf778cd90cfad54f9336d (patch) | |
| tree | 42e88ae851f44be1b9c4e53bfed3e85cc9923607 | |
| parent | c870af37496a0a39d7b21925895500978cabe2f2 (diff) | |
fix spent for test
| -rw-r--r-- | xmake/actions/test/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index d39c80a18..857f06071 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -267,7 +267,7 @@ function _run_tests(tests) local progress = math.floor(index * 100 / #ordertests) 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) + progress, testinfo.name, (" "):rep(padding), passed and "passed" or "failed", spent / 1000) if not passed and errors and (option.get("verbose") or option.get("diagnosis")) then cprint(errors) end |
