mirror of
https://github.com/xoseperez/espurna.git
synced 2026-02-20 01:31:34 +01:00
test(build): cleanup only when cache dir exists
This commit is contained in:
@@ -100,7 +100,8 @@ def cache_cleanup(cache_path: pathlib.Path, offset: datetime.timedelta):
|
||||
def build_configurations(args: argparse.Namespace, configurations: list[pathlib.Path]):
|
||||
cache_path = args.cache_path.resolve()
|
||||
|
||||
cache_cleanup(cache_path, args.expire_cache)
|
||||
if cache_path.is_dir():
|
||||
cache_cleanup(cache_path, args.expire_cache)
|
||||
|
||||
cmd = ["platformio", "run"]
|
||||
if args.silent:
|
||||
|
||||
Reference in New Issue
Block a user