diff options
author | Kai Engert <kaie@kuix.de> | 2016-08-04 23:29:32 +0200 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2016-08-04 23:29:32 +0200 |
commit | 2dc36a73822a2ec670883dcdb82f6d967522f4a5 (patch) | |
tree | 6389d0ad01f6301ba49b749f2bc87c58d9ccbf16 /tests/gtests | |
parent | d75065475859aa2770276319aae64a45de304bd3 (diff) | |
download | nss-hg-2dc36a73822a2ec670883dcdb82f6d967522f4a5.tar.gz |
Bug 1291888, avoid searching core files for individual gtests, avoid nested process pipe, more output to help track down the stuck tests on windows, r=ekr
Diffstat (limited to 'tests/gtests')
-rwxr-xr-x | tests/gtests/gtests.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/gtests/gtests.sh b/tests/gtests/gtests.sh index 278537e41..c5b23bb9d 100755 --- a/tests/gtests/gtests.sh +++ b/tests/gtests/gtests.sh @@ -49,17 +49,21 @@ gtest_start() fi cd "$GTESTDIR" GTESTREPORT="$GTESTDIR/report.xml" + PARSED_REPORT="$GTESTDIR/report.parsed" + echo "executing $i" ${BINDIR}/$i -d "$GTESTDIR" --gtest_output=xml:"${GTESTREPORT}" echo "test output dir: ${GTESTREPORT}" html_msg $? 0 "$i run successfully" - sed -f ${COMMON}/parsegtestreport.sed "${GTESTREPORT}" | \ - while read result name; do + echo "executing sed to parse the xml report" + sed -f ${COMMON}/parsegtestreport.sed "${GTESTREPORT}" > "${PARSED_REPORT}" + echo "processing the parsed report" + cat "${PARSED_REPORT}" | while read result name; do if [ "$result" = "notrun" ]; then echo "$name" SKIPPED elif [ "$result" = "run" ]; then - html_passed "$name" > /dev/null + html_passed_ignore_core "$name" else - html_failed "$name" + html_failed_ignore_core "$name" fi done done |