summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-01-29 22:06:32 +0100
committerBrent Baude <bbaude@redhat.com>2020-01-29 16:16:23 -0600
commitf8067d70b00dbc8caeb78a49fb695a4bfde157cd (patch)
tree6c8a81098636bde3582c238d238c7a52ad358b9a /pkg
parenteb283657036f5dc69c926432252768d158989100 (diff)
downloadpodman-f8067d70b00dbc8caeb78a49fb695a4bfde157cd.tar.gz
podman-f8067d70b00dbc8caeb78a49fb695a4bfde157cd.tar.bz2
podman-f8067d70b00dbc8caeb78a49fb695a4bfde157cd.zip
test: honor TEMPDIR variable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bindings/test/common_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/bindings/test/common_test.go b/pkg/bindings/test/common_test.go
index e3e66c89f..15783041f 100644
--- a/pkg/bindings/test/common_test.go
+++ b/pkg/bindings/test/common_test.go
@@ -62,6 +62,12 @@ func (b *bindingTest) runPodman(command []string) *gexec.Session {
} else {
cmd = append(cmd, "--runroot", b.runRoot)
}
+ val, ok = os.LookupEnv("TEMPDIR")
+ if ok {
+ cmd = append(cmd, "--tmpdir", val)
+ } else {
+ cmd = append(cmd, "--tmpdir", b.tempDirPath)
+ }
val, ok = os.LookupEnv("STORAGE_DRIVER")
if ok {
cmd = append(cmd, "--storage-driver", val)