unittest: tiny fix for incorrect parameters

Fixes #347

Signed-off-by: y00316549 <yangshukui@huawei.com>
This commit is contained in:
y00316549 2018-06-01 10:39:13 +08:00
parent 086d197f2c
commit c10db01599

View File

@ -98,7 +98,7 @@ func init() {
fmt.Printf("INFO: ensuring required docker image (%v) is available\n", testDockerImage)
// Only hit the network if the image doesn't exist locally
_, err = runCommand([]string{"docker", "image", "inspect", testDockerImage})
_, err = runCommand([]string{"docker", "inspect", "--type=image", testDockerImage})
if err == nil {
fmt.Printf("INFO: docker image %v already exists locally\n", testDockerImage)
} else {