From 4a7cb474c2f19630d8b1c2609f69ea25f249d535 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 6 Apr 2022 11:32:21 +0000 Subject: pkg/instance: explicitly specify optional fuzzer arguments Otherwise we get problems while testing patches for older syzkaller versions, which didn't support optional arguments. Adjust tests so that problems with how OldFuzzerCmd handles such arguments could be seen. --- tools/syz-runtest/runtest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-runtest/runtest.go b/tools/syz-runtest/runtest.go index 2f32ca285..621c3e958 100644 --- a/tools/syz-runtest/runtest.go +++ b/tools/syz-runtest/runtest.go @@ -187,7 +187,9 @@ func (mgr *Manager) boot(name string, index int) (*report.Report, error) { Debug: mgr.debug, Test: false, Runtest: true, - Slowdown: mgr.cfg.Timeouts.Slowdown, + Optional: &instance.OptionalFuzzerArgs{ + Slowdown: mgr.cfg.Timeouts.Slowdown, + }, } cmd := instance.FuzzerCmd(args) outc, errc, err := inst.Run(time.Hour, mgr.vmStop, cmd) -- cgit mrf-deployment