diff options
Diffstat (limited to 'tests/testutils/artifactshare.py')
-rw-r--r-- | tests/testutils/artifactshare.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py index 759fd7b00..a8af59905 100644 --- a/tests/testutils/artifactshare.py +++ b/tests/testutils/artifactshare.py @@ -122,9 +122,8 @@ class ArtifactShare(): # same algo for creating an artifact reference # - # Chop off the .bst suffix first - assert element_name.endswith('.bst') - element_name = element_name[:-4] + # Replace path separator and chop off the .bst suffix + element_name = os.path.splitext(element_name.replace(os.sep, '-'))[0] valid_chars = string.digits + string.ascii_letters + '-._' element_name = ''.join([ |