Merge pull request #7196 from medyagh/skip_none

skip preload test for none
pull/7208/head
Medya Ghazizadeh 2020-03-24 05:42:17 -07:00 committed by GitHub
commit afc1311896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -71,6 +71,8 @@ func TestDownloadOnly(t *testing.T) {
t.Errorf("%s failed: %v", args, 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 {
@ -78,7 +80,7 @@ func TestDownloadOnly(t *testing.T) {
}
return
}
}
imgs, err := images.Kubeadm("", v)
if err != nil {
t.Errorf("kubeadm images: %v %+v", v, err)