From c8a08b381ddaa35d4e58e91b7d7d215c9fc66b87 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 15 Jun 2023 14:31:29 +0200 Subject: pkg/report: move report.Type to pkg/report/crash This will help avoid a circular dependency pkg/vcs -> pkg/report -> pkg/vcs. --- pkg/instance/instance.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/instance') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 73cef6931..3dd654f2b 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -21,6 +21,7 @@ import ( "github.com/google/syzkaller/pkg/mgrconfig" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/report" + "github.com/google/syzkaller/pkg/report/crash" "github.com/google/syzkaller/pkg/tool" "github.com/google/syzkaller/pkg/vcs" "github.com/google/syzkaller/sys/targets" @@ -308,7 +309,7 @@ func (inst *inst) test() EnvTestResult { testErr.Title, testErr.Output = bootErr.BootError() ret.RawOutput = testErr.Output rep := inst.reporter.Parse(testErr.Output) - if rep != nil && rep.Type == report.UnexpectedReboot { + if rep != nil && rep.Type == crash.UnexpectedReboot { // Avoid detecting any boot crash as "unexpected kernel reboot". rep = inst.reporter.ParseFrom(testErr.Output, rep.SkipPos) } -- cgit mrf-deployment