mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 04:23:46 +00:00
83357fd5c2
Implement three improvements to the HTML log file: - Ability to expand/contract sections. All passing sections are contracted at file load time so the user can concentrate on issues requiring action. - The overall status report is copied to the top of the log for easy access. - Add links from the status report to the test logs, for easy navigation. This all relies on Javascript and the jquery library. If the user doesn't have Javascript enabled, or jquery can't be downloaded, the log should look and behave identically to how it did before this patch. A few notes on the diff: - A few more 'with log.section("xxx")' were added, so that all stream blocks are kept within a section block for consistent HTML entity nesting structure. This changed indentation in a few places, making the diff look slightly larger. - HTML entity IDs are cleaned up. We assign simple incrementing integer IDs now, rather than using mangled test names which were possibly invalid. - Sections and streams now use common CSS class names (in addition to the current separate class names) to more easily share the new behaviour. This also reduces the CSS file size since rules don't need to be duplicated. - An "OK" status is logged after some external command executions so that make and flash steps are auto-contracted at log file load time, assuming they passed. Signed-off-by: Stephen Warren <swarren@nvidia.com>
101 lines
1.3 KiB
CSS
101 lines
1.3 KiB
CSS
/*
|
|
* Copyright (c) 2015 Stephen Warren
|
|
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
/*
|
|
* This provides pretty formatting of the HTML log file, e.g.
|
|
* - colored bars beside/above log sections for easily parsed delineation.
|
|
* - color highlighting of various messages.
|
|
*/
|
|
|
|
body {
|
|
background-color: black;
|
|
color: #ffffff;
|
|
}
|
|
|
|
pre {
|
|
margin-top: 0px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.implicit {
|
|
color: #808080;
|
|
}
|
|
|
|
.block {
|
|
border-style: solid;
|
|
border-color: #303030;
|
|
border-width: 0px 0px 0px 5px;
|
|
padding-left: 5px
|
|
}
|
|
|
|
.block-header {
|
|
background-color: #303030;
|
|
margin-left: -5px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.block-header:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.block-trailer {
|
|
display: none;
|
|
}
|
|
|
|
.error {
|
|
color: #ff0000
|
|
}
|
|
|
|
.warning {
|
|
color: #ffff00
|
|
}
|
|
|
|
.info {
|
|
color: #808080
|
|
}
|
|
|
|
.action {
|
|
color: #8080ff
|
|
}
|
|
|
|
.status-pass {
|
|
color: #00ff00
|
|
}
|
|
|
|
.status-skipped {
|
|
color: #ffff00
|
|
}
|
|
|
|
.status-xfail {
|
|
color: #ff7f00
|
|
}
|
|
|
|
.status-xpass {
|
|
color: #ff7f00
|
|
}
|
|
|
|
.status-fail {
|
|
color: #ff0000
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
a:link {
|
|
text-decoration: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
a:visited {
|
|
text-decoration: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|