dashboard: disable api/reboot test for unmatched

It takes >15m to complete api and reboot tests for
Hifive unmatched which we don't need.

Change-Id: Ie4535264d2e8ef4496c54fb5f412d5ec773f538a
Reviewed-on: https://go-review.googlesource.com/c/build/+/346709
Trust: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
diff --git a/dashboard/builders.go b/dashboard/builders.go
index 33a4a01..64583fd 100644
--- a/dashboard/builders.go
+++ b/dashboard/builders.go
@@ -2471,17 +2471,11 @@
 		},
 	})
 	addBuilder(BuildConfig{
-		HostType:     "host-linux-riscv64-joelsing",
-		Name:         "linux-riscv64-jsing",
-		SkipSnapshot: true,
-		env:          []string{"GO_TEST_TIMEOUT_SCALE=4"},
-		distTestAdjust: func(run bool, distTest string, isNormalTry bool) bool {
-			switch distTest {
-			case "api", "reboot":
-				return false
-			}
-			return run
-		},
+		HostType:       "host-linux-riscv64-joelsing",
+		Name:           "linux-riscv64-jsing",
+		SkipSnapshot:   true,
+		env:            []string{"GO_TEST_TIMEOUT_SCALE=4"},
+		distTestAdjust: riscvDistTestPolicy,
 		buildsRepo: func(repo, branch, goBranch string) bool {
 			switch repo {
 			case "go", "net", "sys":
@@ -2492,17 +2486,11 @@
 		},
 	})
 	addBuilder(BuildConfig{
-		HostType:     "host-linux-riscv64-unleashed",
-		Name:         "linux-riscv64-unleashed",
-		SkipSnapshot: true,
-		env:          []string{"GO_TEST_TIMEOUT_SCALE=4"},
-		distTestAdjust: func(run bool, distTest string, isNormalTry bool) bool {
-			switch distTest {
-			case "api", "reboot":
-				return false
-			}
-			return run
-		},
+		HostType:       "host-linux-riscv64-unleashed",
+		Name:           "linux-riscv64-unleashed",
+		SkipSnapshot:   true,
+		env:            []string{"GO_TEST_TIMEOUT_SCALE=4"},
+		distTestAdjust: riscvDistTestPolicy,
 		buildsRepo: func(repo, branch, goBranch string) bool {
 			switch repo {
 			case "go", "net", "sys":
@@ -2513,12 +2501,13 @@
 		},
 	})
 	addBuilder(BuildConfig{
-		HostType:     "host-linux-riscv64-unmatched",
-		Name:         "linux-riscv64-unmatched",
-		env:          []string{"GO_TEST_TIMEOUT_SCALE=4"},
-		FlakyNet:     true,
-		SkipSnapshot: true, // The builder has a slow uplink bandwidth.
-		buildsRepo:   onlyMasterDefault,
+		HostType:       "host-linux-riscv64-unmatched",
+		Name:           "linux-riscv64-unmatched",
+		env:            []string{"GO_TEST_TIMEOUT_SCALE=4"},
+		FlakyNet:       true,
+		SkipSnapshot:   true, // The builder has a slow uplink bandwidth.
+		buildsRepo:     onlyMasterDefault,
+		distTestAdjust: riscvDistTestPolicy,
 	})
 	addBuilder(BuildConfig{
 		Name:           "linux-s390x-ibm",
@@ -2755,6 +2744,9 @@
 	}
 }
 
+// riscvDistTestPolicy is same as mipsDistTestPolicy for now.
+var riscvDistTestPolicy = mipsDistTestPolicy
+
 // TryBuildersForProject returns the builders that should run as part of
 // a TryBot set for the given project.
 // The project argument is of the form "go", "net", "sys", etc.