diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 16:11:56 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 16:11:56 +0000 |
commit | 5b020128e065ae82d6cf48e8181363a6428a2a20 (patch) | |
tree | 36f91926912db6a5104d03ca3d3638f0f2b409cc /tools | |
parent | 045bbde461f57338c71a7dd762682978cce878b2 (diff) | |
download | chromium_src-5b020128e065ae82d6cf48e8181363a6428a2a20.zip chromium_src-5b020128e065ae82d6cf48e8181363a6428a2a20.tar.gz chromium_src-5b020128e065ae82d6cf48e8181363a6428a2a20.tar.bz2 |
Filter unnecessary links from the list of builders.
TBR=timurrrr
Review URL: http://codereview.chromium.org/8135027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/valgrind/waterfall.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tools/valgrind/waterfall.sh b/tools/valgrind/waterfall.sh index f773c06..6d3685a 100755 --- a/tools/valgrind/waterfall.sh +++ b/tools/valgrind/waterfall.sh @@ -55,6 +55,7 @@ fetch_logs() { echo "Fetching the list of builders..." download $1 "$LOGS_DIR/builders" SLAVES=$(grep "<a href=\"builders\/" "$LOGS_DIR/builders" | \ + grep 'td class="box"' | \ sed "s/.*<a href=\"builders\///" | sed "s/\".*//" | \ sort | uniq) @@ -68,9 +69,21 @@ fetch_logs() { # We speed up the 'fetch' step by skipping the builds/tests which succeeded. # TODO(timurrrr): OTOH, we won't be able to check # if some suppression is not used anymore. - LIST_OF_BUILDS=$(grep "rev.*<a href=\"\.\./builders/.*/builds/[0-9]\+" \ - "$LOGS_DIR/slave_$S" | head -n 2 | \ - grep "failed" | grep -v "failed compile" | \ + # + # The awk script here joins the lines ending with </td> to make it possible + # to find the failed builds. + LIST_OF_BUILDS=$(cat "$LOGS_DIR/slave_$S" | \ + awk 'BEGIN { buf = "" } + { + if ($0 ~ /<\/td>/) { buf = (buf $0); } + else { + if (buf) { print buf; buf="" } + print $0 + } + } + END {if (buf) print buf}' | \ + grep "Failed" | \ + grep -v "failed compile" | \ sed "s/.*\/builds\///" | sed "s/\".*//") for BUILD in $LIST_OF_BUILDS |