skip the test if docker is not installed
parent
9dfccc632e
commit
53a3c9598d
|
@ -65,6 +65,11 @@ func TestDebPackageInstall(t *testing.T) {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||||
defer cancel()
|
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()))
|
pkgDir, err := filepath.Abs(filepath.Dir(Target()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to get minikube path: %v", err)
|
t.Errorf("failed to get minikube path: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue