fix for fedora

This commit is contained in:
Ondrej Mejzlik 2023-05-15 13:27:11 +02:00
commit 317cee6ab0

View file

@ -48,7 +48,11 @@ rlJournalStart
rlGetTestState && {
rlPhaseStartTest
rlRun "enscript -f 'Times-Roman22' --header '%W Page $% of $=' -p output.ps testfile.txt" 0 "Generate ps file"
rlRun "test $(diff example.ps output.ps | wc -l) -eq 8" 0 "Output diff has 8 lines, difference in date"
if ! rlIsFedora; then
rlRun "test $(diff example.ps output.ps | wc -l) -eq 8" 0 "Output diff has 8 lines, difference in date"
else
rlRun "test $(diff example.ps output.ps | wc -l) -eq 12" 0 "Output diff has 12 lines, difference in date"
fi
diff example.ps output.ps
rlRun "enscript -E --color --toc -w html -p output.html testfile.txt" 0 "Generate html file"
@ -64,7 +68,11 @@ rlJournalStart
diff example.ansi output.ansi
rlRun "enscript --file-align=2 -2 -B -C -G -i 1c -p - testfile.txt > output-std.ps" 0 "Generate test ps file on std"
rlRun "test $(diff example-std.ps output-std.ps | wc -l) -eq 8" 0 "Output diff has 8 lines, difference in date"
if ! rlIsFedora; then
rlRun "test $(diff example-std.ps output-std.ps | wc -l) -eq 8" 0 "Output diff has 8 lines, difference in date"
else
rlRun "test $(diff example-std.ps output-std.ps | wc -l) -eq 12" 0 "Output diff has 12 lines, difference in date"
fi
diff example-std.ps output-std.ps
rlPhaseEnd
}