Skip to content

More robust test/examples.jl

Churavy, Valentin requested to merge github/fork/tkf/tkf/split into vc/split

Created by: tkf

This is a PR onto #200.

I think the test is failing because Base.current_project() doesn't work nicely with --project:

arakaki@amdci2 ~/.j/d/KernelAbstractions (vc/split)> pwd
/home/arakaki/.julia/dev/KernelAbstractions
arakaki@amdci2 ~/.j/d/KernelAbstractions (vc/split)> julia --startup-file=no --project=test -e 'display(Base.current_project())'
"/home/arakaki/.julia/dev/KernelAbstractions/Project.toml"⏎
arakaki@amdci2 ~/.j/d/KernelAbstractions (vc/split)> julia --startup-file=no --project=test -e 'display(Base.load_path())'
3-element Array{String,1}:
 "/home/arakaki/.julia/dev/KernelAbstractions/test/Project.toml"
 "/home/arakaki/.julia/environments/v1.5/Project.toml"
 "/home/arakaki/opt/julia/julia-1.5.2/share/julia/stdlib/v1.5"⏎

A quick workaround may be to use Base.load_path_setup_code() to propagate load path etc to the child processes.

Merge request reports

Loading