aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-12-05 12:20:13 +0100
committerAlexander Potapenko <glider@google.com>2024-12-06 07:54:04 +0000
commitfb1cc4d5036e3321687190e067576046b75b9401 (patch)
tree1315c5c275511a57d6cfc1d68eee893a3b77d774
parent0109bec402e938028d0d5be5389f194acbe78859 (diff)
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.
-rw-r--r--pkg/runtest/executor_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/runtest/executor_test.go b/pkg/runtest/executor_test.go
index 25596646a..bb830e885 100644
--- a/pkg/runtest/executor_test.go
+++ b/pkg/runtest/executor_test.go
@@ -7,6 +7,7 @@ import (
"context"
"fmt"
"math/rand"
+ "os"
"runtime"
"strings"
"testing"
@@ -45,7 +46,7 @@ func TestExecutor(t *testing.T) {
if sysTarget.Arch == runtime.GOARCH || sysTarget.VMArch == runtime.GOARCH {
t.Fatal(err)
}
- if strings.Contains(err.Error(), "SYZFAIL:") {
+ if os.Getenv("CI") != "" || strings.Contains(err.Error(), "SYZFAIL:") {
t.Fatal(err)
} else {
t.Skipf("skipping, cross-arch binary failed: %v", err)