tests: Clean up persistent temporary data
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
059449e140
commit
24c32831a1
@ -10,7 +10,7 @@ import tempfile
|
|||||||
import shutil
|
import shutil
|
||||||
import errno
|
import errno
|
||||||
|
|
||||||
from pungi.util import get_arch_variant_data, makedirs
|
from pungi.util import get_arch_variant_data
|
||||||
from pungi import paths, checks
|
from pungi import paths, checks
|
||||||
|
|
||||||
|
|
||||||
@ -117,9 +117,7 @@ class DummyCompose(object):
|
|||||||
return sorted(result)
|
return sorted(result)
|
||||||
|
|
||||||
def mkdtemp(self, suffix="", prefix="tmp"):
|
def mkdtemp(self, suffix="", prefix="tmp"):
|
||||||
tmpdir = os.path.join('/tmp', "tmp_" + self.compose_id)
|
return tempfile.mkdtemp(suffix=suffix, prefix=prefix, dir=self.topdir)
|
||||||
makedirs(tmpdir)
|
|
||||||
return tempfile.mkdtemp(suffix=suffix, prefix=prefix, dir=tmpdir)
|
|
||||||
|
|
||||||
|
|
||||||
def touch(path, content=None):
|
def touch(path, content=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user