Skip to content

Commit b5e3df2

Browse files
authored
test: Use tmp files to avoid filesystem permission issues (#59)
Caught during PkgEval run <https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_date/2026-07/05/ASDF.primary.log>
1 parent a784df5 commit b5e3df2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test-reference.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414

1515
function roundtrip(fpath; extensions = false, validate_checksum = true)
1616
af = ASDF.load_file(fpath; extensions, validate_checksum)
17-
fpath_roundtrip = replace(fpath, ".asdf" => "_roundtrip.asdf")
17+
fpath_roundtrip = joinpath(mktempdir(), basename(replace(fpath, ".asdf" => "_roundtrip.asdf")))
1818
ASDF.write_file(fpath_roundtrip, af.metadata)
1919
af_roundtrip = ASDF.load_file(fpath_roundtrip; extensions, validate_checksum)
2020
return af_roundtrip, af

0 commit comments

Comments
 (0)