aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/repro/repro.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-06-08 17:57:33 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-06-09 16:26:44 +0200
commit9018a3379f7ea7affb251bf8a319d9a8c5abadab (patch)
treee8ea282883532bffbcda250decc64f38a74b26c7 /pkg/repro/repro.go
parent058b3a5a6a945a55767811552eb7b9f4a20307f8 (diff)
syz-manager: don't report all pkg/repro errors on shutdown
Otherwise we're getting "repro failed: all VMs failed to boot" pkg/repro errors if a sykaller instance is shutting down.
Diffstat (limited to 'pkg/repro/repro.go')
-rw-r--r--pkg/repro/repro.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go
index dc680cbb5..87b9eaa4c 100644
--- a/pkg/repro/repro.go
+++ b/pkg/repro/repro.go
@@ -543,12 +543,14 @@ func (ctx *context) testWithInstance(callback func(execInterface) (rep *instance
return true, nil
}
+var ErrNoVMs = errors.New("all VMs failed to boot")
+
// A helper method for testWithInstance.
func (ctx *context) runOnInstance(callback func(execInterface) (rep *instance.RunResult,
err error)) (*instance.RunResult, error) {
inst := <-ctx.instances
if inst == nil {
- return nil, fmt.Errorf("all VMs failed to boot")
+ return nil, ErrNoVMs
}
defer ctx.returnInstance(inst)
return callback(inst.execProg)