summaryrefslogtreecommitdiff
path: root/cmd/podman/common_test.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-03-22 09:56:34 +0100
committerSascha Grunert <sgrunert@suse.com>2019-04-04 09:07:05 +0200
commit81a4451fea812d65ddef4b3a4fc821cbfefd7670 (patch)
tree2b7fe3a3df1f08a106c012a74580604020421bd6 /cmd/podman/common_test.go
parent42830ab711aadb69e344a58627c6c7cfee45ddc9 (diff)
downloadpodman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.tar.gz
podman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.tar.bz2
podman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.zip
Add deadcode linter
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
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")
- }
-}