tests: Clear /tmp/cloud-build before running tests

This commit is contained in:
Mikhail Gordeev 2022-05-30 18:18:03 +03:00
parent e8130b4a17
commit f61cb02e94

View File

@ -47,6 +47,7 @@ class TestIntegrationImages(TestCase):
@classmethod
def setUpClass(cls):
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)
(cls.work_dir / 'external_files/p9/x86_64/README').write_text('README')
config = cls.work_dir / 'config.yaml'