aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow/boot-step/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'syz-cluster/workflow/boot-step/main.go')
-rw-r--r--syz-cluster/workflow/boot-step/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/syz-cluster/workflow/boot-step/main.go b/syz-cluster/workflow/boot-step/main.go
index 2b180098b..648d7d5bb 100644
--- a/syz-cluster/workflow/boot-step/main.go
+++ b/syz-cluster/workflow/boot-step/main.go
@@ -76,11 +76,17 @@ func main() {
// the test must fail 3 times in a row.
const retryCount = 3
+// The base config may have more VMs, but we don't need that many.
+const vmCount = 3
+
func runTest(ctx context.Context, client *api.Client) (bool, error) {
cfg, err := mgrconfig.LoadFile(filepath.Join("/configs", *flagConfig, "base.cfg"))
if err != nil {
return false, err
}
+ if err := instance.OverrideVMCount(cfg, vmCount); err != nil {
+ return false, err
+ }
cfg.Workdir = "/tmp/test-workdir"
var rep *report.Report