tests: Clear /tmp/cloud-build before running tests
This commit is contained in:
parent
e8130b4a17
commit
f61cb02e94
@ -47,6 +47,7 @@ class TestIntegrationImages(TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
cls.work_dir = Path('/tmp/cloud-build')
|
cls.work_dir = Path('/tmp/cloud-build')
|
||||||
|
shutil.rmtree(cls.work_dir, ignore_errors=True)
|
||||||
os.makedirs(cls.work_dir / 'external_files/p9/x86_64', exist_ok=True)
|
os.makedirs(cls.work_dir / 'external_files/p9/x86_64', exist_ok=True)
|
||||||
(cls.work_dir / 'external_files/p9/x86_64/README').write_text('README')
|
(cls.work_dir / 'external_files/p9/x86_64/README').write_text('README')
|
||||||
config = cls.work_dir / 'config.yaml'
|
config = cls.work_dir / 'config.yaml'
|
||||||
|
Loading…
Reference in New Issue
Block a user