Blob Blame History Raw
From 989c5abeeb8fe05bd164b3794f31c470d497ae41 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Thu, 17 Dec 2020 05:05:47 -0500
Subject: [PATCH 5/5] Only run i386 tests on GOARCH=386 systems.

Builds on koji do not work for this because it does not support
multilib.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 main_test.go | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/main_test.go b/main_test.go
index d2cbba3..524d653 100644
--- a/main_test.go
+++ b/main_test.go
@@ -78,9 +78,11 @@ func TestCompiler(t *testing.T) {
 	}
 
 	if runtime.GOOS == "linux" {
-		t.Run("X86Linux", func(t *testing.T) {
-			runPlatTests("i386--linux-gnu", matches, t)
-		})
+		if runtime.GOARCH == "386" {
+			t.Run("X86Linux", func(t *testing.T) {
+				runPlatTests("i386--linux-gnu", matches, t)
+			})
+		}
 		goVersion, err := goenv.GorootVersionString(goenv.Get("GOROOT"))
 		if err != nil {
 			t.Error("could not get Go version:", err)
-- 
2.29.2