Skip to content

Commit fb1cc4d

Browse files
pkg/runtest: make cross-arch failures fatal on CI
When running on Github CI, turn every failure to start a cross-arch binary (e.g. due to missing qemu-user) into a fatal error.
1 parent 0109bec commit fb1cc4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/runtest/executor_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"fmt"
99
"math/rand"
10+
"os"
1011
"runtime"
1112
"strings"
1213
"testing"
@@ -45,7 +46,7 @@ func TestExecutor(t *testing.T) {
4546
if sysTarget.Arch == runtime.GOARCH || sysTarget.VMArch == runtime.GOARCH {
4647
t.Fatal(err)
4748
}
48-
if strings.Contains(err.Error(), "SYZFAIL:") {
49+
if os.Getenv("CI") != "" || strings.Contains(err.Error(), "SYZFAIL:") {
4950
t.Fatal(err)
5051
} else {
5152
t.Skipf("skipping, cross-arch binary failed: %v", err)

0 commit comments

Comments
 (0)