From 5ed8f1b7d9de9a831e98761a001955cba1103caa Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Fri, 4 Aug 2023 11:22:10 +0100 Subject: [PATCH] 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 --- tests/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/build.go b/tests/build.go index 87021f92..96e4af26 100644 --- a/tests/build.go +++ b/tests/build.go @@ -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" }