Index: courgette/analyze_stress_test |
diff --git a/courgette/analyze_stress_test b/courgette/analyze_stress_test |
index 338eb6e5f9c38a00674455b861f1d2705193a016..0c700eba59a638b6556a30fab79fbd5d2d2430a6 100755 |
--- a/courgette/analyze_stress_test |
+++ b/courgette/analyze_stress_test |
@@ -6,21 +6,9 @@ |
# Produce metrics analyzing the output of a stress test |
-set -e |
- |
-error() { |
- echo "error: ${@}" >&2 |
-} |
+source "$(dirname ${0})/stress_test_common" |
-# 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 |
-} |
+set -e |
# Given a token, search for and compute the percentiles from logfile. |
compute_percentiles() { |