aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-06-20 16:27:30 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-27 14:07:17 +0000
commitea06dccba2e87794cd2be051bba3ae7847c08598 (patch)
tree928daf245056796a8cdccdf36ea6e3913bbe385f
parent20862c9746e9f0c4ec37e9d9e914f02a82acfb60 (diff)
downloadpodman-ea06dccba2e87794cd2be051bba3ae7847c08598.tar.gz
podman-ea06dccba2e87794cd2be051bba3ae7847c08598.tar.bz2
podman-ea06dccba2e87794cd2be051bba3ae7847c08598.zip
test: add env variables to the debug output
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #936 Approved by: rhatdan
-rw-r--r--test/e2e/libpod_suite_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go
index 542122daf..448dbfc04 100644
--- a/test/e2e/libpod_suite_test.go
+++ b/test/e2e/libpod_suite_test.go
@@ -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 {