Commit 2775f08e authored by Damian Kijańczuk's avatar Damian Kijańczuk

Add [IGT] highlighting in Dmesg logs

Added highlighting to lines in dmesg which contain [IGT], searching and
coloring is done client-side.

v2:
* Now higlighted line gets special class appended rather than
  overwritten
Sign-off-by: Damian Kijańczuk's avatarKijanczuk, Damian <damian.kijanczuk@intel.com>
parent 72e8b7ad
......@@ -93,6 +93,13 @@ if 'run' in test:
%endfor
</table>
## Highlighting logs with [IGT] in them
<script>
document.querySelectorAll("[id*='dmesg-normal']").forEach(x =>
x.textContent.includes("[IGT]") && (x.classList.add("dmesg-igt"))
);
</script>
<i>Created at ${datetime.now().strftime('%Y-%m-%d %H:%M:%S')}</i>
</body>
</html>
......@@ -43,6 +43,10 @@ tr:nth-child(odd) > td:first-child {
font-weight: bold;
}
.dmesg-igt {
background-color: #ffffba;
}
.dmesg-warnings, .dmesg-normal {
white-space: pre;
font-family: monospace;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment