Skip to content

Commit

Permalink
fix #12241, running tests from outside test/
Browse files Browse the repository at this point in the history
put back `cd` that was removed in #8745
  • Loading branch information
tkelman committed Jul 25, 2015
1 parent bbd3745 commit 494eef7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

include("choosetests.jl")
tests, net_on = choosetests(ARGS)
let n = 1
cd(dirname(@__FILE__)) do
n = 1
if net_on
n = min(8, CPU_CORES, length(tests))
n > 1 && addprocs(n; exeflags=`--check-bounds=yes --depwarn=error`)
Expand All @@ -11,7 +12,7 @@ let n = 1

@everywhere include("testdefs.jl")

reduce(propagate_errors, nothing, pmap(test->runtests(test), tests; err_retry=false, err_stop=true))
reduce(propagate_errors, nothing, pmap(runtests, tests; err_retry=false, err_stop=true))

@unix_only n > 1 && rmprocs(workers(), waitfor=5.0)
println(" \033[32;1mSUCCESS\033[0m")
Expand Down

0 comments on commit 494eef7

Please sign in to comment.