mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-07 22:47:49 +00:00
test: honor TEMPDIR variable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
eb28365703
commit
f8067d70b0
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue