test: Fix compile error with go1.10.2

Replace Skip with Skipf in the intergration test.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2018-10-08 11:43:53 -07:00
parent e4f33828c3
commit 54b1c00b3b

View File

@ -36,7 +36,7 @@ func TestImageLoad(t *testing.T) {
loadedImage := "docker.io/library/" + testImage loadedImage := "docker.io/library/" + testImage
_, err := exec.LookPath("docker") _, err := exec.LookPath("docker")
if err != nil { if err != nil {
t.Skip("Docker is not available: %v", err) t.Skipf("Docker is not available: %v", err)
} }
t.Logf("docker save image into tarball") t.Logf("docker save image into tarball")
output, err := exec.Command("docker", "pull", testImage).CombinedOutput() output, err := exec.Command("docker", "pull", testImage).CombinedOutput()