| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script can be used by waterfall sheriffs to fetch the status | 7 # This script can be used by waterfall sheriffs to fetch the status |
| 8 # of Valgrind bots on the memory waterfall and test if their local | 8 # of Valgrind bots on the memory waterfall and test if their local |
| 9 # suppressions match the reports on the waterfall. | 9 # suppressions match the reports on the waterfall. |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 done | 125 done |
| 126 # }}} | 126 # }}} |
| 127 } | 127 } |
| 128 | 128 |
| 129 match_suppressions() { | 129 match_suppressions() { |
| 130 PYTHONPATH=$THISDIR/../python/google \ | 130 PYTHONPATH=$THISDIR/../python/google \ |
| 131 python "$THISDIR/test_suppressions.py" $@ "$LOGS_DIR/report_"* | 131 python "$THISDIR/test_suppressions.py" $@ "$LOGS_DIR/report_"* |
| 132 } | 132 } |
| 133 | 133 |
| 134 match_gtest_excludes() { | 134 match_gtest_excludes() { |
| 135 for PLATFORM in "Linux" "Chromium%20Mac" "Chromium%20OS" | 135 for PLATFORM in "Linux" "Chromium%20Mac" "Chromium%20OS" "Windows" |
| 136 do | 136 do |
| 137 echo | 137 echo |
| 138 echo "Test failures on ${PLATFORM}:" | sed "s/%20/ /" | 138 echo "Test failures on ${PLATFORM}:" | sed "s/%20/ /" |
| 139 grep -h -o "^FAILED:.*" -R "$LOGS_DIR"/*${PLATFORM}* | \ | 139 grep -h -o "^FAILED:.*" -R "$LOGS_DIR"/*${PLATFORM}* | \ |
| 140 grep -v "FAILS\|FLAKY" | sort | uniq | \ | 140 grep -v "FAILS\|FLAKY" | sort | uniq | \ |
| 141 sed -e "s/^FAILED://" -e "s/^/ /" | 141 sed -e "s/^FAILED://" -e "s/^/ /" |
| 142 # Don't put any operators between "grep | sed" and "RESULT=$PIPESTATUS" | 142 # Don't put any operators between "grep | sed" and "RESULT=$PIPESTATUS" |
| 143 RESULT=$PIPESTATUS | 143 RESULT=$PIPESTATUS |
| 144 | 144 |
| 145 if [ "$RESULT" == 1 ] | 145 if [ "$RESULT" == 1 ] |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 elif [ "$CMD" = "match" ]; then | 213 elif [ "$CMD" = "match" ]; then |
| 214 match_suppressions $@ | 214 match_suppressions $@ |
| 215 match_gtest_excludes | 215 match_gtest_excludes |
| 216 elif [ "$CMD" = "blame" ]; then | 216 elif [ "$CMD" = "blame" ]; then |
| 217 echo The blame command died of bitrot. If you need it, please reimplement it. | 217 echo The blame command died of bitrot. If you need it, please reimplement it. |
| 218 echo Reimplementation is blocked on http://crbug.com/82688 | 218 echo Reimplementation is blocked on http://crbug.com/82688 |
| 219 else | 219 else |
| 220 usage | 220 usage |
| 221 exit 1 | 221 exit 1 |
| 222 fi | 222 fi |
| OLD | NEW |