summaryrefslogtreecommitdiff
path: root/buildstream/testing/runcli.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/testing/runcli.py')
-rw-r--r--buildstream/testing/runcli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/testing/runcli.py b/buildstream/testing/runcli.py
index 72bdce09e..934c31236 100644
--- a/buildstream/testing/runcli.py
+++ b/buildstream/testing/runcli.py
@@ -637,8 +637,8 @@ class TestArtifact():
def remove_artifact_from_cache(self, cache_dir, element_name):
cache_dir = os.path.join(cache_dir, 'cas', 'refs', 'heads')
-
- cache_dir = os.path.splitext(os.path.join(cache_dir, 'test', element_name))[0]
+ normal_name = element_name.replace(os.sep, '-')
+ cache_dir = os.path.splitext(os.path.join(cache_dir, 'test', normal_name))[0]
shutil.rmtree(cache_dir)
# is_cached():