提交 d11149d7 编写于 作者: I Ilya Zuyev

make Arm64Platform private

上级 2ea47152
......@@ -194,7 +194,7 @@ func TestDownloadOnlyKic(t *testing.T) {
if err != nil {
t.Errorf("failed to read tarball file %q: %v", tarball, err)
}
if !Arm64Platform() {
if !arm64Platform() {
// Make sure it has the correct checksum
checksum := md5.Sum(contents)
remoteChecksum, err := ioutil.ReadFile(download.PreloadChecksumPath(constants.DefaultKubernetesVersion, cRuntime))
......
......@@ -34,7 +34,7 @@ func TestOffline(t *testing.T) {
t.Run(rt, func(t *testing.T) {
MaybeParallel(t)
if rt != "docker" && Arm64Platform() {
if rt != "docker" && arm64Platform() {
t.Skipf("skipping %s - only docker runtime supported on arm64", t.Name())
}
......
......@@ -42,7 +42,7 @@ import (
// TestAddons tests addons that require no special environment -- in parallel
func TestAddons(t *testing.T) {
if !Arm64Platform() {
if !arm64Platform() {
t.Skipf("Skip helm addon test for arm64")
}
......
......@@ -42,7 +42,7 @@ func TestKVMDriverInstallOrUpdate(t *testing.T) {
t.Skip("Skip if not linux.")
}
if Arm64Platform() {
if arm64Platform() {
t.Skip("Skip if arm64.")
}
......
......@@ -816,7 +816,7 @@ func validateServiceCmd(ctx context.Context, t *testing.T, profile string) {
}()
var echoServerArg string
if Arm64Platform() {
if arm64Platform() {
echoServerArg = "k8s.gcr.io/echoserver-arm:1.8"
} else {
echoServerArg = "k8s.gcr.io/echoserver:1.10"
......@@ -994,7 +994,7 @@ func validateSSHCmd(ctx context.Context, t *testing.T, profile string) {
// validateMySQL validates a minimalist MySQL deployment
func validateMySQL(ctx context.Context, t *testing.T, profile string) {
if Arm64Platform() {
if arm64Platform() {
t.Skip("arm64 is not supported by mysql. skip the test")
return
}
......
......@@ -135,8 +135,8 @@ func GithubActionRunner() bool {
return os.Getenv("GITHUB_ACTIONS") == "true"
}
// Arm64Platform returns true if running on arm64/* platform
func Arm64Platform() bool {
// arm64Platform returns true if running on arm64/* platform
func arm64Platform() bool {
return runtime.GOARCH == "arm64"
}
......
......@@ -31,7 +31,7 @@ func TestPreload(t *testing.T) {
t.Skipf("skipping %s - incompatible with none driver", t.Name())
}
if Arm64Platform() {
if arm64Platform() {
t.Skipf("skipping %s - not yet supported on arm64", t.Name())
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册