summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-19 15:34:45 -0200
committerdrebs <drebs@leap.se>2017-12-19 15:36:18 -0200
commit90d8a2534543589b03f50d8575c265794595d335 (patch)
treec608efb2beeff5d5ab9fa748961103bc17bc52a8 /scripts
parente2d4f002d861f62b43016c71702d83af0a6bdd18 (diff)
[test] account for first timers in outlier calculation
When it's the first time a test is run, there'll not be previous results to compare against. The script that calculates outliers was not prepared for this situation. This commit just fixes that.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/benchmark/check-for-outliers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/benchmark/check-for-outliers.py b/scripts/benchmark/check-for-outliers.py
index 6037ef00..309e6828 100755
--- a/scripts/benchmark/check-for-outliers.py
+++ b/scripts/benchmark/check-for-outliers.py
@@ -145,6 +145,8 @@ def detect_bad_outlier(test, mean, extra):
def _detect_outlier(test, name, value, list):
+ if not list:
+ return 0
mean = _mean(list)
std = _std(list)
result = 0