17296: Skip integration tests if docker is not installed.
authorTom Clegg <tom@curii.com>
Tue, 25 May 2021 19:28:49 +0000 (15:28 -0400)
committerTom Clegg <tom@curii.com>
Tue, 25 May 2021 19:28:49 +0000 (15:28 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

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()