diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78d0786fb934a3..01e68470c0e481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,9 +49,10 @@ jobs: ${{ runner.os }}-test-${{ env.cache-name }}- ${{ runner.os }}-test-${{ matrix.os }} ${{ runner.os }}- - - run: julia --color=yes .ci/test_and_change_uuid.jl - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + env: + JULIA_DISTRIBUTED_TESTING_STANDALONE: 1 - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v1 with: diff --git a/test/distributed_exec.jl b/test/distributed_exec.jl index 43e02c92b5a818..648cde57b8c131 100644 --- a/test/distributed_exec.jl +++ b/test/distributed_exec.jl @@ -3,6 +3,13 @@ using Test, Distributed, Random, Serialization, Sockets import Distributed: launch, manage +sharedir = normpath(joinpath(Sys.BINDIR, "..", "share")) +if parse(Bool, get(ENV, "JULIA_DISTRIBUTED_TESTING_STANDALONE", "false")) + @test !startswith(pathof(Distributed), sharedir) +else + @test startswith(pathof(Distributed), sharedir) +end + @test cluster_cookie() isa String include(joinpath(Sys.BINDIR, "..", "share", "julia", "test", "testenv.jl"))