repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ChildAccountService: get service flags from AccountTrackerService instead of fetching...
[chromium-blink-merge.git]
/
courgette
/
stress_test_common
blob
b6c9b25e8886567cda17bba240ef7337a3cce611
1
#!/bin/bash
2
3
# Emit an error message
4
error
() {
5
echo
"error:
${@}
"
>&
2
6
}
7
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
15
fi
16
}