=== modified file 'dashboard_app/__init__.py'
@@ -20,4 +20,4 @@
Dashboard Application (package)
"""
-__version__ = (0, 9, 0, "final", 0)
+__version__ = (0, 9, 1, "final", 0)
=== modified file 'dashboard_app/templates/dashboard_app/bundle_detail.html'
@@ -46,7 +46,7 @@
<h3>Tips</h3>
<p>You can download this bundle with the following command:</p>
<div class="console">
- <code>lava-dashboard-tool --dashboard-url=http://{{site.domain}}{% url lava.api_handler %} get {{bundle.content_sha1}}</code>
+ <code>lava-dashboard-tool get --dashboard-url=http://{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}}</code>
</div>
{% endblock %}
=== modified file 'dashboard_app/views.py'
@@ -188,10 +188,21 @@
bundle = bundle_stream.bundles.get(content_sha1=content_sha1)
test_runs = []
for test_run in bundle.test_runs.all():
+ results = test_run.get_summary_results()
+
+ measurements = [{'item': str(item.test_case),
+ 'measurement': str(item.measurement),
+ 'units': str(item.units)
+ }
+ for item in test_run.test_results.filter(
+ measurement__isnull=False).
+ order_by('test_case__test_case_id')]
+ results['measurements'] = measurements
+
test_runs.append({
'name': test_run.test.test_id,
'url': request.build_absolute_uri(test_run.get_absolute_url()),
- 'results': test_run.get_summary_results()
+ 'results': results
})
json_text = json.dumps({
'test_runs':test_runs,
=== modified file 'doc/changes.rst'
@@ -1,6 +1,14 @@
Version History
***************
+.. _version_0_9_1:
+
+Version 0.9.1
+=============
+
+* Merge for bug LP:#877859: add measurement information to the json output.
+ This change is used by the Android build service.
+
.. _version_0_6:
Version 0.6