Add t.Skip(..) for TestDownloadOnlyKic test case

pull/9985/head
Ilya Zuyev 2021-01-14 12:30:28 -08:00
parent 839bd03621
commit 7750f709ce
1 changed files with 12 additions and 10 deletions

View File

@ -194,15 +194,17 @@ func TestDownloadOnlyKic(t *testing.T) {
if err != nil { if err != nil {
t.Errorf("failed to read tarball file %q: %v", tarball, err) t.Errorf("failed to read tarball file %q: %v", tarball, err)
} }
if !arm64Platform() {
// Make sure it has the correct checksum if arm64Platform() {
checksum := md5.Sum(contents) t.Skip("Skip for arm64 platform. See https://github.com/kubernetes/minikube/issues/10144")
remoteChecksum, err := ioutil.ReadFile(download.PreloadChecksumPath(constants.DefaultKubernetesVersion, cRuntime)) }
if err != nil { // Make sure it has the correct checksum
t.Errorf("failed to read checksum file %q : %v", download.PreloadChecksumPath(constants.DefaultKubernetesVersion, cRuntime), err) checksum := md5.Sum(contents)
} remoteChecksum, err := ioutil.ReadFile(download.PreloadChecksumPath(constants.DefaultKubernetesVersion, cRuntime))
if string(remoteChecksum) != string(checksum[:]) { if err != nil {
t.Errorf("failed to verify checksum. checksum of %q does not match remote checksum (%q != %q)", tarball, string(remoteChecksum), string(checksum[:])) t.Errorf("failed to read checksum file %q : %v", download.PreloadChecksumPath(constants.DefaultKubernetesVersion, cRuntime), err)
} }
if string(remoteChecksum) != string(checksum[:]) {
t.Errorf("failed to verify checksum. checksum of %q does not match remote checksum (%q != %q)", tarball, string(remoteChecksum), string(checksum[:]))
} }
} }