From f61cb02e94dbba6c3b7adf56ff0ebe68b5360415 Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Mon, 30 May 2022 18:18:03 +0300 Subject: [PATCH] tests: Clear /tmp/cloud-build before running tests --- tests/test_integration_images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_integration_images.py b/tests/test_integration_images.py index 010be04..683df71 100644 --- a/tests/test_integration_images.py +++ b/tests/test_integration_images.py @@ -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'