mirror of
https://github.com/containers/podman.git
synced 2025-11-02 06:37:09 +08:00
Merge pull request #1920 from wking/explicit-hooks-dirs
libpod/container_internal: Deprecate implicit hook directories
This commit is contained in:
@ -336,7 +336,7 @@ var _ = Describe("Podman run", func() {
|
||||
hooksDir := tempdir + "/hooks"
|
||||
os.Mkdir(hooksDir, 0755)
|
||||
fileutils.CopyFile("hooks/hooks.json", hooksDir)
|
||||
os.Setenv("HOOK_OPTION", fmt.Sprintf("--hooks-dir-path=%s", hooksDir))
|
||||
os.Setenv("HOOK_OPTION", fmt.Sprintf("--hooks-dir=%s", hooksDir))
|
||||
os.Remove(hcheck)
|
||||
session := podmanTest.Podman([]string{"run", ALPINE, "ls"})
|
||||
session.Wait(10)
|
||||
|
||||
Reference in New Issue
Block a user