Skip to content

Commit 57c1513

Browse files
committed
fix bug in test where sub dir of mounted paths fail
1 parent 06642c8 commit 57c1513

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/pulp_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,5 @@ def test_pulp_import_export_volume_mounts(server, container, pulp_import_export_
103103
destinations = [mount['Destination'] for mount in mounts]
104104

105105
for path in import_paths + export_paths:
106-
assert path in destinations, f"expected {path} to be mounted as a volume in {container}"
106+
mounted = path in destinations or any(path.startswith(d + '/') for d in destinations)
107+
assert mounted, f"expected {path} to be mounted as a volume in {container}"

0 commit comments

Comments
 (0)