diff options
| author | Alexander Potapenko <glider@google.com> | 2024-12-05 11:18:38 +0100 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-12-05 10:57:12 +0000 |
| commit | 3255c6513f118900b5c41e9cf7a93c09118e2a29 (patch) | |
| tree | ba99afd14e40f9090a31c6b05ceec4f6b850ae24 /pkg/runtest/executor_test.go | |
| parent | eb3349184a5429659f9ce67be9166fc4634d8020 (diff) | |
pkg/runtest: fail on cross-platform SYZFAIL reports
Previously, cross-platform invocations of `syz-executor test` were ignored
in the case of a SYZFAIL, and the test was still marked as PASS.
Explicitly report a test failure instead.
Diffstat (limited to 'pkg/runtest/executor_test.go')
| -rw-r--r-- | pkg/runtest/executor_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/runtest/executor_test.go b/pkg/runtest/executor_test.go index 4d803283a..25596646a 100644 --- a/pkg/runtest/executor_test.go +++ b/pkg/runtest/executor_test.go @@ -8,6 +8,7 @@ import ( "fmt" "math/rand" "runtime" + "strings" "testing" "time" @@ -44,7 +45,11 @@ func TestExecutor(t *testing.T) { if sysTarget.Arch == runtime.GOARCH || sysTarget.VMArch == runtime.GOARCH { t.Fatal(err) } - t.Skipf("skipping, cross-arch binary failed: %v", err) + if strings.Contains(err.Error(), "SYZFAIL:") { + t.Fatal(err) + } else { + t.Skipf("skipping, cross-arch binary failed: %v", err) + } } }) } |
