summaryrefslogtreecommitdiff
path: root/print-errors
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-02 08:11:18 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-02 08:11:18 +0100
commiteda702a95211a18d2e247dd7dfff7029e707c2c0 (patch)
tree20c4c0c1f5e39c3773e29350ce9ddb2580353ada /print-errors
parentRun xpcshell tests sequential (diff)
downloadlibrewolf-fedora-ff-eda702a95211a18d2e247dd7dfff7029e707c2c0.tar.gz
librewolf-fedora-ff-eda702a95211a18d2e247dd7dfff7029e707c2c0.tar.bz2
librewolf-fedora-ff-eda702a95211a18d2e247dd7dfff7029e707c2c0.zip
Log reftest results as HTML
Diffstat (limited to 'print-errors')
-rwxr-xr-xprint-errors9
1 files changed, 9 insertions, 0 deletions
diff --git a/print-errors b/print-errors
new file mode 100755
index 0000000..b3ddba6
--- /dev/null
+++ b/print-errors
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+# Print failed tests
+
+TEST_DIR=$1
+TEST_FLAVOUR=$2
+
+grep "TEST-UNEXPECTED-FAIL" $TEST_DIR/mochitest$TEST_FLAVOUR 2>&1 > failures-mochitest$TEST_FLAVOUR
+grep --text " FAIL " $TEST_DIR/xpcshell$TEST_FLAVOUR 2>&1 > failures-xpcshell$TEST_FLAVOUR
+grep --text -e "REFTEST TEST-UNEXPECTED-PASS" -e "REFTEST TEST-UNEXPECTED-FAIL" $TEST_DIR/reftest$TEST_FLAVOUR 2>&1 > failures-reftest$TEST_FLAVOUR
bgstack15