提交 53a3c959 编写于 作者: I Ilya Zuyev

skip the test if docker is not installed

上级 9dfccc63
......@@ -65,6 +65,11 @@ func TestDebPackageInstall(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
rr, err := Run(t, exec.CommandContext(ctx, "docker", "version"))
if err != nil || rr.ExitCode != 0 {
t.Skip("docker is not installed")
}
pkgDir, err := filepath.Abs(filepath.Dir(Target()))
if err != nil {
t.Errorf("failed to get minikube path: %v", err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册