summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-04-27 18:44:02 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-04-29 14:06:54 +0200
commita48c37df3765f42c779ac0674eb021f955ed9c07 (patch)
treeee491d29f01c292d36bf8aa09d9211a51cbc88b1 /test/utils
parent69c479b16e19f4f919fa820aeafe90cb113b8e0a (diff)
downloadpodman-a48c37df3765f42c779ac0674eb021f955ed9c07.tar.gz
podman-a48c37df3765f42c779ac0674eb021f955ed9c07.tar.bz2
podman-a48c37df3765f42c779ac0674eb021f955ed9c07.zip
fix broken hooks-dir test
The test has been broken since it was added 4 years ago. Instead of using hardcoded paths we should use tmp files. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/podmantest_test.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/utils/podmantest_test.go b/test/utils/podmantest_test.go
index a9b5aef1f..26d359d38 100644
--- a/test/utils/podmantest_test.go
+++ b/test/utils/podmantest_test.go
@@ -1,8 +1,6 @@
package utils_test
import (
- "os"
-
. "github.com/containers/podman/v4/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@@ -19,16 +17,6 @@ var _ = Describe("PodmanTest test", func() {
FakeOutputs = make(map[string][]string)
})
- It("Test PodmanAsUserBase", func() {
- FakeOutputs["check"] = []string{"check"}
- os.Setenv("HOOK_OPTION", "hook_option")
- env := os.Environ()
- session := podmanTest.PodmanAsUserBase([]string{"check"}, 1000, 1000, "", env, true, false, nil, nil)
- os.Unsetenv("HOOK_OPTION")
- session.WaitWithDefaultTimeout()
- Expect(session.Command.Process).ShouldNot(BeNil())
- })
-
It("Test NumberOfContainersRunning", func() {
FakeOutputs["ps -q"] = []string{"one", "two"}
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(2))