Implement Tier 2 of Cookie handling for Mirror on WKBling.
[chromium-blink-merge.git] / courgette / stress_test_common
blobb6c9b25e8886567cda17bba240ef7337a3cce611
1 #!/bin/bash
3 # Emit an error message
4 error() {
5 echo "error: ${@}" >&2
8 # Given a token, search for and count the instances of lines from the
9 # logfile that start with the token.
10 count_result() {
11 if [ ! -z "${1}" ]; then
12 echo $(cat "${log}" | grep "^${1} " | wc -l)
13 else
14 echo 0