From 49654b6b119885aabc3c310892c5d0c6c2711259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 27 Mar 2019 10:21:37 +0100 Subject: [PATCH] fix: Automatically remove failed runs. --- lookyloo/lookyloo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index fa1c5f2e..94d25ea7 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -52,6 +52,7 @@ class Lookyloo(): har_files = sorted(report_dir.glob('*.har')) if not har_files: self.logger.warning(f'No har files in {report_dir}') + report_dir.rmdir() return with (report_dir / 'uuid').open() as f: uuid = f.read().strip()