diff options
author | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 10:47:55 +0000 |
---|---|---|
committer | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 10:47:55 +0000 |
commit | 484893f3e5ed917340d429365a538ec281f43fb9 (patch) | |
tree | 1c82b0542d55e00e4171bad3b295d8067bb0b1f8 | |
parent | b64abf63068267e8a3566cbcffc84cac54ee3e9d (diff) | |
download | chromium_src-484893f3e5ed917340d429365a538ec281f43fb9.zip chromium_src-484893f3e5ed917340d429365a538ec281f43fb9.tar.gz chromium_src-484893f3e5ed917340d429365a538ec281f43fb9.tar.bz2 |
Print the list of failed test in "./tools/valgrind/waterfall.sh match"
The example report is like this:
<<<<<<<<<<<<<<<<<<<<<<<<<<
$ ./tools/valgrind/waterfall.sh match
Congratulations! All reports are suppressed!
Test failures on Linux:
None!
Test failures on Chromium Mac:
ui:NPAPITesterBase.GetURLRedirectNotification
Note: we don't check for failures already excluded locally yet
TODO(timurrrr): don't list tests we've already excluded locally
Test failures on Chromium OS:
None!
Note: we don't print FAILS/FLAKY tests and 1200s-timeout failures
<<<<<<<<<<<<<<<<<<<<<<<<<<
I think this should be handy for Chromium Memory Sheriffs
TEST=./tools/valgrind/waterfall.sh match
Review URL: http://codereview.chromium.org/5304002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67246 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | tools/valgrind/waterfall.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/valgrind/waterfall.sh b/tools/valgrind/waterfall.sh index eb9014f..b03764d 100755 --- a/tools/valgrind/waterfall.sh +++ b/tools/valgrind/waterfall.sh @@ -94,6 +94,31 @@ match_suppressions() { python "$THISDIR/test_suppressions.py" "$LOGS_DIR/report_"* } +match_gtest_excludes() { + for PLATFORM in "Linux" "Chromium%20Mac" "Chromium%20OS" + do + echo + echo "Test failures on ${PLATFORM}:" | sed "s/%20/ /" + grep "\[ FAILED \] .* ([0-9]\+ ms)" -R "$LOGS_DIR"/*${PLATFORM}* | \ + grep -v "FAILS\|FLAKY" | \ + sed -e "s/.*%20//" -e "s/_[1-9]\+:/:/" \ + -e "s/\[ FAILED \] //" -e "s/ ([0-9]\+ ms)//" -e "s/^/ /" + # Don't put any operators between "grep | sed" and "RESULT=$PIPESTATUS" + RESULT=$PIPESTATUS + + if [ "$RESULT" == 1 ] + then + echo " None!" + else + echo + echo " Note: we don't check for failures already excluded locally yet" + echo " TODO(timurrrr): don't list tests we've already excluded locally" + fi + done + echo + echo "Note: we don't print FAILS/FLAKY tests and 1200s-timeout failures" +} + find_blame() { # Return the blame list for the first revision for a suppression occured in # the logs of a given test on a given builder. @@ -204,6 +229,7 @@ then elif [ "$1" = "match" ] then match_suppressions + match_gtest_excludes elif [ "$1" = "blame" ] then find_blame "$2" "$3" "$4" |