@@ -4,7 +4,8 @@ using Artifacts, Test, Base.BinaryPlatforms
4
4
using Artifacts: with_artifacts_directory, pack_platform!, unpack_platform
5
5
6
6
# prepare for the package tests by ensuring the required artifacts are downloaded now
7
- run (addenv (` $(Base. julia_cmd ()) --color=no $(joinpath (@__DIR__ , " refresh_artifacts.jl" )) ` , " TERM" => " dumb" ))
7
+ artifacts_dir = mktempdir ()
8
+ run (addenv (` $(Base. julia_cmd ()) --color=no $(joinpath (@__DIR__ , " refresh_artifacts.jl" )) $(artifacts_dir) ` , " TERM" => " dumb" ))
8
9
9
10
@testset " Artifact Paths" begin
10
11
mktempdir () do tempdir
81
82
end
82
83
83
84
@testset " Artifact Slash-indexing" begin
84
- tempdir = joinpath (@__DIR__ , " artifacts" )
85
- with_artifacts_directory (tempdir) do
85
+ with_artifacts_directory (artifacts_dir) do
86
86
exeext = Sys. iswindows () ? " .exe" : " "
87
87
88
88
# simple lookup, gives us the directory for `c_simple` for the current architecture
112
112
end
113
113
114
114
@testset " @artifact_str Platform passing" begin
115
- tempdir = joinpath (@__DIR__ , " artifacts" )
116
- with_artifacts_directory (tempdir) do
115
+ with_artifacts_directory (artifacts_dir) do
117
116
win64 = Platform (" x86_64" , " windows" )
118
117
mac64 = Platform (" x86_64" , " macos" )
119
118
@test basename (@artifact_str (" c_simple" , win64)) == " 444cecb70ff39e8961dd33e230e151775d959f37"
0 commit comments