summaryrefslogtreecommitdiff
path: root/cmd/podman/common_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-04-05 11:02:41 -0400
committerGitHub <noreply@github.com>2019-04-05 11:02:41 -0400
commitbc320be00bc584bd88525266d23a9d5edb9d44f8 (patch)
treec6d03492ac9684f22cdf5e553321569369f1cf59 /cmd/podman/common_test.go
parented8bd80d3f09fb5c82c53bde8d6779db2613f158 (diff)
parent023eba20db1912a477eedff529fa52d356033a38 (diff)
downloadpodman-bc320be00bc584bd88525266d23a9d5edb9d44f8.tar.gz
podman-bc320be00bc584bd88525266d23a9d5edb9d44f8.tar.bz2
podman-bc320be00bc584bd88525266d23a9d5edb9d44f8.zip
Merge pull request #2742 from openSUSE/golangci-lint
Switch to golangci-lint
Diffstat (limited to 'cmd/podman/common_test.go')
-rw-r--r--cmd/podman/common_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/cmd/podman/common_test.go b/cmd/podman/common_test.go
deleted file mode 100644
index a24173003..000000000
--- a/cmd/podman/common_test.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package main
-
-import (
- "os/user"
- "testing"
-)
-
-func skipTestIfNotRoot(t *testing.T) {
- u, err := user.Current()
- if err != nil {
- t.Skip("Could not determine user. Running without root may cause tests to fail")
- } else if u.Uid != "0" {
- t.Skip("tests will fail unless run as root")
- }
-}