Skip to content

Commit 0149ae9

Browse files
author
Anton Khodak
authored
Merge pull request #46 from milos-ljubinkovic/path_endings
Handling directory paths
2 parents 900364a + 3399683 commit 0149ae9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cwltest/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def compare_location(expected, actual):
2727
comp = "location"
2828
else:
2929
return
30+
if actual.get("class") == "Directory":
31+
actual[comp] = actual[comp].rstrip("/")
32+
3033
if expected[comp] != "Any" and (not (actual[comp].endswith("/" + expected[comp]) or
3134
("/" not in actual[comp] and expected[comp] == actual[comp]))):
3235
raise CompareFail.format(expected, actual, u"%s does not end with %s" % (actual[comp], expected[comp]))

0 commit comments

Comments
 (0)