mirror of
https://github.com/containers/podman.git
synced 2025-06-21 09:28:09 +08:00
test: honor TEMPDIR variable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:

committed by
Brent Baude

parent
eb28365703
commit
f8067d70b0
@ -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)
|
||||
|
Reference in New Issue
Block a user