Skip to content

Commit a17445e

Browse files
committed
update tests for apple meta data
1 parent 20e7c2f commit a17445e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/runtests.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ testconfigs = [
132132
expectedfile = joinpath(@__DIR__, "build", config[:sitename] * ".epub")
133133
@test isfile(expectedfile)
134134
if isepubcheck
135-
@test_nowarn run(`epubcheck -q $expectedfile`)
135+
cmd = `epubcheck -q $expectedfile`
136+
err = Pipe()
137+
proc = run(pipeline(ignorestatus(cmd), stdout=devnull, stderr=err))
138+
close(err.in)
139+
errmsg = String(read(err))
140+
# we expect one error for apple metadata and two additional output lines
141+
@test count(==('\n'), errmsg) == 3
136142
end
137143
end

0 commit comments

Comments
 (0)