aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-01 00:21:24 +0900
committerOphestra <cat@gensokyo.uk>2026-11-01 00:21:24 +0900
commit6b88f9afb9f8cd6312e0313e51e23d35dc23310b (patch)
tree003d01fdc5d07b2fe0772be7a73211b4157fdbc1
parentaed48ee842aedf792e15b3818db73429ac823d66 (diff)
cmd/dist: disable testing if cross-compiling
QEMU does not support most things worth testing, and supported tests that invoke a binary still requires binfmt to work correctly. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--cmd/dist/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dist/main.go b/cmd/dist/main.go
index b147ade5..b3b58b56 100644
--- a/cmd/dist/main.go
+++ b/cmd/dist/main.go
@@ -192,7 +192,7 @@ func main() {
)
log.Println()
- if runTests {
+ if arch == runtime.GOARCH && runTests {
log.Println("##### Testing Hakurei.")
mustRun(
ctx, nil, "go", "test", raceFlag,