summaryrefslogtreecommitdiff
path: root/tests/testutils/runcli.py
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-23 18:44:15 +0200
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-24 06:48:08 +0000
commitd88568ef71d309858ffb9093fb4c590f40fc7921 (patch)
tree5c565bd296c94b8d9438cff8a721659d446d9ff7 /tests/testutils/runcli.py
parent86e4729d66f198ff1713b54f8bc0fadb1eb4e0fa (diff)
downloadbuildstream-d88568ef71d309858ffb9093fb4c590f40fc7921.tar.gz
tests/integration/source-determinism.py: Use cli_integration.valentindavid/cli_integration_source_determinism
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')