summaryrefslogtreecommitdiff
path: root/tests/testutils/runcli.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/runcli.py')
-rw-r--r--tests/testutils/runcli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py
index 96d4ea457..ee4eb957e 100644
--- a/tests/testutils/runcli.py
+++ b/tests/testutils/runcli.py
@@ -198,8 +198,10 @@ class Cli():
for key, val in config.items():
self.config[key] = val
- def remove_artifact_from_cache(self, project, element_name):
- cache_dir = os.path.join(project, 'cache', 'artifacts')
+ def remove_artifact_from_cache(self, project, element_name,
+ *, cache_dir=None):
+ if not cache_dir:
+ cache_dir = os.path.join(project, 'cache', 'artifacts')
cache_dir = os.path.join(cache_dir, 'cas', 'refs', 'heads')