From 653fac46ec7d75320993b9b50c5e95127146a81f Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Tue, 24 Mar 2020 00:46:48 -0700 Subject: [PATCH] skip preload test for none --- test/integration/aaa_download_only_test.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/integration/aaa_download_only_test.go b/test/integration/aaa_download_only_test.go index 9640212800..7cd32410ab 100644 --- a/test/integration/aaa_download_only_test.go +++ b/test/integration/aaa_download_only_test.go @@ -71,14 +71,16 @@ func TestDownloadOnly(t *testing.T) { t.Errorf("%s failed: %v", args, err) } - if download.PreloadExists(v, r) { - // Just make sure the tarball path exists - if _, err := os.Stat(download.TarballPath(v)); err != nil { - t.Errorf("preloaded tarball path doesn't exist: %v", err) + // skip for none, as none driver does not have preload feature. + if !NoneDriver() { + if download.PreloadExists(v, r) { + // Just make sure the tarball path exists + if _, err := os.Stat(download.TarballPath(v)); err != nil { + t.Errorf("preloaded tarball path doesn't exist: %v", err) + } + return } - return } - imgs, err := images.Kubeadm("", v) if err != nil { t.Errorf("kubeadm images: %v %+v", v, err)