tests: avoid hardcoded driver check in testImageIDOutput

To detect if there is a docker daemon available, we can use the sandbox
.DockerAddress() function.

Signed-off-by: Justin Chadwell <me@jedevc.com>
pull/1987/head
Justin Chadwell 1 year ago
parent 13ec635988
commit 5ed8f1b7d9

@ -106,7 +106,7 @@ func testImageIDOutput(t *testing.T, sb integration.Sandbox) {
outFlag := "--output=type=docker"
if sb.Name() == "remote" {
if sb.DockerAddress() == "" {
// there is no Docker atm to load the image
outFlag += ",dest=" + targetDir + "/image.tar"
}

Loading…
Cancel
Save