mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
test: add env variables to the debug output
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #936 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
20862c9746
commit
ea06dccba2
@ -175,7 +175,11 @@ func (p *PodmanTest) PodmanAsUser(args []string, uid, gid uint32, env []string)
|
||||
}
|
||||
podmanOptions = append(podmanOptions, strings.Split(p.StorageOptions, " ")...)
|
||||
podmanOptions = append(podmanOptions, args...)
|
||||
fmt.Printf("Running: %s %s\n", p.PodmanBinary, strings.Join(podmanOptions, " "))
|
||||
if env == nil {
|
||||
fmt.Printf("Running: %s %s\n", p.PodmanBinary, strings.Join(podmanOptions, " "))
|
||||
} else {
|
||||
fmt.Printf("Running: (env: %v) %s %s\n", env, p.PodmanBinary, strings.Join(podmanOptions, " "))
|
||||
}
|
||||
command := exec.Command(p.PodmanBinary, podmanOptions...)
|
||||
|
||||
if uid != 0 || gid != 0 {
|
||||
|
Reference in New Issue
Block a user