Skip to content
Snippets Groups Projects
Commit 1402aee7 authored by Daniel Brown's avatar Daniel Brown
Browse files

added duration to table

parent 24c51432
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,8 @@
{ "mDataProp": "status", "sTitle": "Status","bSearchable": true, "bVisible": true, "sClass": "center" },
{ "mDataProp": "git_commit", "sTitle": "Git Commit", "bSearchable": true, "bVisible": true, "sClass": "center" },
{ "mDataProp": "startTime", "sTitle": "Start Time", "bSearchable": false, "bVisible": true, "sClass": "center" },
{ "mDataProp": "endTime", "sTitle": "End Time", "bSearchable": false, "bVisible": true, "sClass": "center" }
{ "mDataProp": "endTime", "sTitle": "End Time", "bSearchable": false, "bVisible": true, "sClass": "center" },
{ "mDataProp": "duration", "sTitle": "Duration [s]", "bSearchable": false, "bVisible": true, "sClass": "center" }
]
});
}
......
......@@ -23,7 +23,7 @@
<li>{{ suite }}</li>
<ul>
{% for item in kats[suite] %}
<li>{{item[0]}} - Max rel diff = {{item[1]}}</li>
<li><span style="width: 200px">{{item[0]}}</span> - Max rel diff = {{item[1]}}</li>
{% if item[2][0] != "" %}
<ul>
<li>stdout: <pre>{{item[2][0]}}</pre></li>
......
......@@ -468,11 +468,14 @@ def finesse_get_prev_tests(count):
else:
status = "OK"
dt = datetime.strptime(endTime,"%Y-%m-%d %H:%M:%S.%f")-datetime.strptime(startTime,"%Y-%m-%d %H:%M:%S.%f")
obj = dict(test_id=i['test_id'],
git_commit=i['git_commit'],
status=status,
startTime=startTime,
endTime=endTime)
endTime=endTime,
duration=float(dt.seconds))
rtn.insert(0,obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment