Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ParallelTestRunner"
uuid = "d3525ed8-44d0-4b2c-a655-542cee43accc"
authors = ["Valentin Churavy <v.churavy@gmail.com>"]
version = "2.6.3"
version = "2.6.4"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
8 changes: 7 additions & 1 deletion src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,13 @@ function _runtests(mod::Module, args::ParsedArgs;
jobs = something(args.jobs, default_njobs())
jobs = clamp(jobs, 1, length(tests))
println(stdout, "Running $(length(tests)) tests using $jobs parallel jobs. If this is too many concurrent jobs, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
!isnothing(args.verbose) && println(stdout, "Available memory: $(Base.format_bytes(available_memory()))")
if !isnothing(args.verbose)
print(stdout, "Available memory: ")
printstyled(stdout, Base.format_bytes(available_memory()); bold=true)
print(stdout, "; Max worker RSS: ")
printstyled(stdout, Base.format_bytes(max_worker_rss); bold=true)
println(stdout)
end
sem = Base.Semaphore(max(1, jobs))
worker_pool = Channel{Union{Nothing, PTRWorker}}(jobs)
for _ in 1:jobs
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include(joinpath(@__DIR__, "utils.jl"))
@test contains(str, "time (s)")

@test contains(str, "Available memory:")
@test contains(str, "Max worker RSS:")
@test contains(str, "Init")

# compile time as part of the struct not available before 1.11
Expand Down Expand Up @@ -829,6 +830,7 @@ end
str = String(take!(io))
@test !contains(str, "started at")
@test !contains(str, "Available memory:")
@test !contains(str, "Max worker RSS:")
@test contains(str, "SUCCESS")
end

Expand Down
Loading