diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-06-08 17:57:33 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-06-09 16:26:44 +0200 |
| commit | 9018a3379f7ea7affb251bf8a319d9a8c5abadab (patch) | |
| tree | e8ea282883532bffbcda250decc64f38a74b26c7 /pkg/repro | |
| parent | 058b3a5a6a945a55767811552eb7b9f4a20307f8 (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')
| -rw-r--r-- | pkg/repro/repro.go | 4 |
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) |
