summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/aggregate_results.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-01-06 09:59:31 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-01-06 09:59:31 +0200
commite1e895a4ee2a8c02367c0472d1b7d64f17067733 (patch)
treed3cca94e8f1771594b9844c301c6eb9cbf88dc5d /scripts/automation/regression/aggregate_results.py
parent410d16778d71b46780c152b79dd084938519f17b (diff)
regression: move style.css inside aggregate_results.py
Diffstat (limited to 'scripts/automation/regression/aggregate_results.py')
-rwxr-xr-xscripts/automation/regression/aggregate_results.py60
1 files changed, 58 insertions, 2 deletions
diff --git a/scripts/automation/regression/aggregate_results.py b/scripts/automation/regression/aggregate_results.py
index a3a90fbf..cab19d09 100755
--- a/scripts/automation/regression/aggregate_results.py
+++ b/scripts/automation/regression/aggregate_results.py
@@ -138,6 +138,64 @@ def add_category_of_tests(category, tests, hidden = False, category_info_dir = N
html_output += '\n</table>\n</div>'
return html_output
+style_css = """
+html {overflow-y:scroll;}
+
+body {
+ font-size:12px;
+ color:#000000;
+ background-color:#ffffff;
+ margin:0px;
+ font-family:verdana,helvetica,arial,sans-serif;
+}
+
+div {width:100%;}
+
+table,th,td,input,textarea {
+ font-size:100%;
+}
+
+table.reference, table.reference_fail {
+ background-color:#ffffff;
+ border:1px solid #c3c3c3;
+ border-collapse:collapse;
+ vertical-align:middle;
+}
+
+table.reference th {
+ background-color:#e5eecc;
+ border:1px solid #c3c3c3;
+ padding:3px;
+}
+
+table.reference_fail th {
+ background-color:#ffcccc;
+ border:1px solid #c3c3c3;
+ padding:3px;
+}
+
+
+table.reference td, table.reference_fail td {
+ border:1px solid #c3c3c3;
+ padding:3px;
+}
+
+a.example {font-weight:bold}
+
+#a:link,a:visited {color:#900B09; background-color:transparent}
+#a:hover,a:active {color:#FF0000; background-color:transparent}
+
+.linktr {
+ cursor: pointer;
+}
+
+.linktext {
+ color:#0000FF;
+ text-decoration: underline;
+}
+"""
+
+
# main
if __name__ == '__main__':
@@ -276,8 +334,6 @@ if __name__ == '__main__':
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
'''
- with open('style.css') as f:
- style_css = f.read()
html_output += style_css
html_output +='''
</style>