Merge branch '17755-singularity-race' into main refs #17755
[arvados.git] / lib / crunchrun / singularity_test.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package crunchrun
6
7 import (
8         "os/exec"
9
10         . "gopkg.in/check.v1"
11 )
12
13 var _ = Suite(&singularitySuite{})
14
15 type singularitySuite struct {
16         executorSuite
17 }
18
19 func (s *singularitySuite) SetUpSuite(c *C) {
20         _, err := exec.LookPath("singularity")
21         if err != nil {
22                 c.Skip("looks like singularity is not installed")
23         }
24         s.newExecutor = func(c *C) {
25                 var err error
26                 s.executor, err = newSingularityExecutor(c.Logf)
27                 c.Assert(err, IsNil)
28         }
29 }