aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbed/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-testbed/html.go')
-rw-r--r--tools/syz-testbed/html.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/syz-testbed/html.go b/tools/syz-testbed/html.go
index 5a9b2f0b9..f76601a41 100644
--- a/tools/syz-testbed/html.go
+++ b/tools/syz-testbed/html.go
@@ -166,11 +166,17 @@ type uiMainPage struct {
}
func (ctx *TestbedContext) getTableTypes() []uiTableType {
- typeList := []uiTableType{
+ allTypeList := []uiTableType{
{HTMLStatsTable, "Statistics", ctx.httpMainStatsTable},
{HTMLBugsTable, "Bugs", ctx.genSimpleTableController((StatView).GenerateBugTable, true)},
{HTMLBugCountsTable, "Bug Counts", ctx.genSimpleTableController((StatView).GenerateBugCountsTable, false)},
}
+ typeList := []uiTableType{}
+ for _, t := range allTypeList {
+ if ctx.Target.SupportsHTMLView(t.Key) {
+ typeList = append(typeList, t)
+ }
+ }
return typeList
}