Skip to content

Commit

Permalink
Use test package in dummy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hughes committed Jul 17, 2018
1 parent 456d5eb commit e4da575
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/dummy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
"os/exec"
"syscall"
"testing"

"github.com/singularityware/singularity/src/pkg/test"
)

var singularity string
Expand All @@ -33,8 +35,8 @@ func TestMain(m *testing.M) {
}

func Test_ImageBuild(t *testing.T) {
t.Run("Docker", docker)
t.Run("Exec", sExec)
t.Run("Docker", test.WithPrivilege(docker))
t.Run("Exec", test.WithPrivilege(sExec))
}

func docker(t *testing.T) {
Expand Down

0 comments on commit e4da575

Please sign in to comment.