mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
Add hooks support to podman
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #155 Approved by: mheon
This commit is contained in:
committed by
Atomic Bot
parent
ca3b241451
commit
fdcf633a33
@ -156,6 +156,9 @@ func (p *PodmanTest) MakeOptions() []string {
|
||||
// Podman is the exec call to podman on the filesystem
|
||||
func (p *PodmanTest) Podman(args []string) *PodmanSession {
|
||||
podmanOptions := p.MakeOptions()
|
||||
if os.Getenv("HOOK_OPTION") != "" {
|
||||
podmanOptions = append(podmanOptions, os.Getenv("HOOK_OPTION"))
|
||||
}
|
||||
podmanOptions = append(podmanOptions, strings.Split(p.StorageOptions, " ")...)
|
||||
podmanOptions = append(podmanOptions, args...)
|
||||
fmt.Printf("Running: %s %s\n", p.PodmanBinary, strings.Join(podmanOptions, " "))
|
||||
|
||||
Reference in New Issue
Block a user