Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: courgette/stress_test_common

Issue 994883002: Restore stress_test_common script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/analyze_stress_test ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/stress_test_common
diff --git a/courgette/stress_test_common b/courgette/stress_test_common
new file mode 100755
index 0000000000000000000000000000000000000000..b6c9b25e8886567cda17bba240ef7337a3cce611
--- /dev/null
+++ b/courgette/stress_test_common
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Emit an error message
+error() {
+ echo "error: ${@}" >&2
+}
+
+# Given a token, search for and count the instances of lines from the
+# logfile that start with the token.
+count_result() {
+ if [ ! -z "${1}" ]; then
+ echo $(cat "${log}" | grep "^${1} " | wc -l)
+ else
+ echo 0
+ fi
+}
« no previous file with comments | « courgette/analyze_stress_test ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698