mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix the shown number of jobs for the test summary
This commit is contained in:
parent
ed2d1286da
commit
cc2fcb52d6
@ -246,7 +246,11 @@ pub fn (mut ts TestSession) test() {
|
|||||||
remaining_files = vtest.filter_vtest_only(remaining_files, fix_slashes: false)
|
remaining_files = vtest.filter_vtest_only(remaining_files, fix_slashes: false)
|
||||||
ts.files = remaining_files
|
ts.files = remaining_files
|
||||||
ts.benchmark.set_total_expected_steps(remaining_files.len)
|
ts.benchmark.set_total_expected_steps(remaining_files.len)
|
||||||
ts.benchmark.njobs = runtime.nr_jobs()
|
mut njobs := runtime.nr_jobs()
|
||||||
|
if remaining_files.len < njobs {
|
||||||
|
njobs = remaining_files.len
|
||||||
|
}
|
||||||
|
ts.benchmark.njobs = njobs
|
||||||
mut pool_of_test_runners := pool.new_pool_processor(callback: worker_trunner)
|
mut pool_of_test_runners := pool.new_pool_processor(callback: worker_trunner)
|
||||||
// for handling messages across threads
|
// for handling messages across threads
|
||||||
ts.nmessages = chan LogMessage{cap: 10000}
|
ts.nmessages = chan LogMessage{cap: 10000}
|
||||||
|
Loading…
Reference in New Issue
Block a user