summaryrefslogtreecommitdiff
path: root/elastic/generate-config.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-04-18 17:38:07 +0200
committerdrebs <drebs@riseup.net>2017-04-18 17:38:07 +0200
commitd8a9b0ab25d3510b28f6b7608a2a21fc75800f84 (patch)
tree9cf9f0e28961b01df4a8ff540640532c3f4bf307 /elastic/generate-config.py
parentf924fa1e252c47022b5759943dedaa82698c59c1 (diff)
Show sorted tests in dashboard.
Diffstat (limited to 'elastic/generate-config.py')
-rwxr-xr-xelastic/generate-config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/elastic/generate-config.py b/elastic/generate-config.py
index 9d5358c..b935cb6 100755
--- a/elastic/generate-config.py
+++ b/elastic/generate-config.py
@@ -45,7 +45,7 @@ def generate_dashboards():
count = 0
for test_name in tests:
count += 1
- panels += '{\\"id\\":\\"' + test_name + '\\",\\"panelIndex\\":' + str(count) + ',\\"col\\":1,\\"row\\":' + str(count) + ',\\"size_x\\":6,\\"size_y\\":3,\\"type\\":\\"visualization\\"}, '
+ panels += '{\\"id\\":\\"' + test_name + '\\",\\"panelIndex\\":1,\\"col\\":1,\\"row\\":' + str(count) + ',\\"size_x\\":6,\\"size_y\\":3,\\"type\\":\\"visualization\\"}, '
panels = panels[:-2]
panels += ']'
@@ -69,6 +69,7 @@ tests = []
for d in buckets:
name = d['key']
tests.append(name)
+tests = sorted(tests)
generate_dashboards()
generate_visualizations()