Skip to content

Commit e7c8d7b

Browse files
committed
test: ensure that all of /proc/mounts is scanned since the filesystem root mount can be different from subdirectories of the root
1 parent a49af74 commit e7c8d7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cuda_bindings/tests/test_cufile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def isSupportedFilesystem():
107107
if current_dir.startswith(mount_point):
108108
fs_type_lower = fs_type.lower()
109109
logging.info(f"Current filesystem type: {fs_type_lower}")
110-
return fs_type_lower in ["ext4", "xfs"]
110+
if fs_type_lower in ("ext4", "xfs"):
111+
return True
111112

112113
# If we get here, we couldn't determine the filesystem type
113114
logging.warning("Could not determine filesystem type from /proc/mounts")

0 commit comments

Comments
 (0)