Skip to content

Commit

Permalink
Merge pull request #24387 from JuliaLang/yyc/tests/early-exit
Browse files Browse the repository at this point in the history
Remove idling worker as soon as there's no more tests to run
  • Loading branch information
yuyichao authored Oct 30, 2017
2 parents ccb02de + b3622d6 commit c2d35e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ cd(dirname(@__FILE__)) do
print_with_color(:white, rpad(rss_str,rss_align," "), "\n")
end
end
if p != 1
# Free up memory =)
rmprocs(p, waitfor=30)
end
end
end
end
# Free up memory =)
n > 1 && rmprocs(workers(), waitfor=30)
for t in node1_tests
# As above, try to run each test
# which must run on node 1. If
Expand Down

0 comments on commit c2d35e4

Please sign in to comment.