driver(container): fix conditional statement for error handling

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
(cherry picked from commit 57d737a13c)
This commit is contained in:
CrazyMax
2024-01-05 16:24:18 +01:00
parent b68ee824c6
commit 8fb1163577
4 changed files with 54 additions and 2 deletions

12
tests/rm.go Normal file
View File

@ -0,0 +1,12 @@
package tests
import (
"github.com/moby/buildkit/util/testutil/integration"
)
func rmCmd(sb integration.Sandbox, opts ...cmdOpt) (string, error) {
opts = append([]cmdOpt{withArgs("rm")}, opts...)
cmd := buildxCmd(sb, opts...)
out, err := cmd.CombinedOutput()
return string(out), err
}