VAULT-14847 Skip cetain tests on ARM (#20990)

This commit is contained in:
Violet Hynes
2023-06-05 14:02:39 -04:00
committed by GitHub
parent da5d0ca498
commit 9163a237c1
11 changed files with 74 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"database/sql"
"fmt"
"os"
"runtime"
"strings"
"testing"
@@ -26,6 +27,12 @@ func PrepareTestContainer(t *testing.T, legacy bool, pw string) (func(), string)
return func() {}, os.Getenv("MYSQL_URL")
}
// ARM64 is only supported on MySQL 8.0 and above. If we update
// our image and support to 8.0, we can unskip these tests.
if strings.Contains(runtime.GOARCH, "arm") {
t.Skip("Skipping, as MySQL 5.7 is not supported on ARM architectures")
}
imageVersion := "5.7"
if legacy {
imageVersion = "5.6"