Scoping is too confusing with custom package and modules to use `pmap`

I do not fully understand but this way works for me.

More precisely, change test/runtests.jl to this:

using Distributed
addprocs()


@everywhere push!(LOAD_PATH, ".")
@everywhere using MyPackage

result = pmap(myfunc, 1:10)
@show result
  • result
julia> include("test/runtests.jl")
result = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
10-element Array{Int64,1}:
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10