diff options
| author | ruki <[email protected]> | 2024-02-06 22:59:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-06 22:59:26 +0800 |
| commit | 3c4ce8986b515d8553ef1e6cb1108d56e62f809e (patch) | |
| tree | fb076f8dddef39e86f66a439a4eb5208a77314af /xmake/actions/test/main.lua | |
| parent | c2d5a4a059d88134ef426cb58499994ef02508b2 (diff) | |
improve test jobs
Diffstat (limited to 'xmake/actions/test/main.lua')
| -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 620c63134..ccc69e897 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -269,7 +269,7 @@ function _run_tests(tests) local spent = os.mclock() print("running tests ...") local report = {passed = 0, total = #ordertests} - local jobs = tonumber(option.get("jobs") or "1") + local jobs = tonumber(option.get("jobs")) or os.default_njob() runjobs("run_tests", function (index) local testinfo = ordertests[index] if testinfo then |
