diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-08-23 18:44:15 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-24 06:48:08 +0000 |
commit | d88568ef71d309858ffb9093fb4c590f40fc7921 (patch) | |
tree | 5c565bd296c94b8d9438cff8a721659d446d9ff7 /tests/testutils/runcli.py | |
parent | 86e4729d66f198ff1713b54f8bc0fadb1eb4e0fa (diff) | |
download | buildstream-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.py | 6 |
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') |