Remove .txt suffix from reference test files
This commit is contained in:
parent
3b9714c8a8
commit
12fcc121fa
@ -9,8 +9,7 @@ function test_all(pkg::AbstractString; kwargs...)
|
|||||||
with_pkg(t, pkg) do pkg
|
with_pkg(t, pkg) do pkg
|
||||||
pkg_dir = joinpath(t.dir, pkg)
|
pkg_dir = joinpath(t.dir, pkg)
|
||||||
foreach(readlines(`git -C $pkg_dir ls-files`)) do f
|
foreach(readlines(`git -C $pkg_dir ls-files`)) do f
|
||||||
# All fixture files are .txt so that ReferenceTests can handle them.
|
reference = joinpath(@__DIR__, "fixtures", pkg, f)
|
||||||
reference = joinpath(@__DIR__, "fixtures", pkg, f * ".txt")
|
|
||||||
observed = read(joinpath(pkg_dir, f), String)
|
observed = read(joinpath(pkg_dir, f), String)
|
||||||
@test_reference reference observed
|
@test_reference reference observed
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user