17296: Skip integration tests if docker is not installed.
[arvados.git] / lib / crunchrun / integration_test.go
index 04a15bcea7bf97c11a6dd66af52d641967ed0a0a..50136e51d61660ba3dc4aaf5e27094ba6c8484ad 100644 (file)
@@ -36,6 +36,11 @@ type integrationSuite struct {
 }
 
 func (s *integrationSuite) SetUpSuite(c *C) {
+       _, err := exec.LookPath("docker")
+       if err != nil {
+               c.Skip("looks like docker is not installed")
+       }
+
        arvadostest.StartKeep(2, true)
 
        out, err := exec.Command("docker", "load", "--input", busyboxDockerImage(c)).CombinedOutput()