From eacc0dd3cee68816bb410600121617f576b89da7 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 19 Apr 2021 12:20:54 +0200 Subject: [PATCH] Copy preferences to test-specific project dir. --- .github/workflows/ci.yml | 3 +++ test/Project.toml | 1 + test/runtests.jl | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e8de77..1c3baab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,9 @@ jobs: @test startswith(UserNSSandbox_jll.sandbox_path, Scratch.scratch_dir()) ' if: ${{ matrix.build-sandbox != '' }} + - name: Copy preferences + run: sed 's/\[\(.*\)\]/[preferences.\1]/' LocalPreferences.toml >test/Project.toml + if: ${{ matrix.build-sandbox != '' }} - uses: julia-actions/julia-runtest@v1 Documentation: diff --git a/test/Project.toml b/test/Project.toml index 851c3fb..f4a5523 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -6,3 +6,4 @@ Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" Scratch = "6c6a2e73-6563-6170-7368-637461726353" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +UserNSSandbox_jll = "b88861f7-1d72-59dd-91e7-a8cc876a4984" diff --git a/test/runtests.jl b/test/runtests.jl index 235af5c..d18570b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,4 @@ -using Test, Sandbox +using Test, Sandbox, UserNSSandbox_jll include("SandboxConfig.jl") include("UserNamespaces.jl")