summaryrefslogtreecommitdiff
path: root/print-error-reftest
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-03 14:59:03 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-03 14:59:03 +0100
commit9ebc9be748937ba00181255086b69bf331d1b3d1 (patch)
tree9ae92d87e24dadd0cb4b8e91c21dacd018860e4c /print-error-reftest
parentAdded fix for mozilla#1694670 (diff)
parentMerge branch 'f33' into rawhide (diff)
downloadlibrewolf-fedora-ff-9ebc9be748937ba00181255086b69bf331d1b3d1.tar.gz
librewolf-fedora-ff-9ebc9be748937ba00181255086b69bf331d1b3d1.tar.bz2
librewolf-fedora-ff-9ebc9be748937ba00181255086b69bf331d1b3d1.zip
Added fix for mozbz#1694670 - merge
Diffstat (limited to 'print-error-reftest')
-rwxr-xr-xprint-error-reftest13
1 files changed, 13 insertions, 0 deletions
diff --git a/print-error-reftest b/print-error-reftest
new file mode 100755
index 0000000..7a58c1c
--- /dev/null
+++ b/print-error-reftest
@@ -0,0 +1,13 @@
+#!/usr/bin/bash
+# Print reftest failures and compose them to html
+
+TEST_DIR="$1"
+TEST_FLAVOUR="$2"
+OUTPUT_FILE="failures-reftest$TEST_FLAVOUR.html"
+
+grep --text -e "REFTEST TEST-UNEXPECTED-PASS" -e "REFTEST TEST-UNEXPECTED-FAIL" -e "IMAGE 1 (TEST):" -e "IMAGE 2 (REFERENCE):" $TEST_DIR/reftest$TEST_FLAVOUR 2>&1 > $OUTPUT_FILE
+sed -i '/REFTEST IMAGE 1/a ">' $OUTPUT_FILE
+sed -i '/REFTEST IMAGE 2/a "><BR><BR>' $OUTPUT_FILE
+sed -i '/REFTEST TEST/a <BR>' $OUTPUT_FILE
+sed -i -e 's/^REFTEST IMAGE 1 (TEST): /<img border=2 src="/' $OUTPUT_FILE
+sed -i -e 's/^REFTEST IMAGE 2 (REFERENCE): /<img border=2 src="/' $OUTPUT_FILE
bgstack15