Skip to content

Commit a9f5f14

Browse files
committed
Just hack that overlay + CI env variable seems to be fine :/
1 parent f4984ae commit a9f5f14

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

cuda_bindings/tests/test_cufile.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ def skipIfUnsupportedFilesystem(tmpdir_factory):
9090
cmd = ["findmnt", "-no", "FSTYPE", "-T", tmpdir_factory.getbasetemp()]
9191
fs_type = subprocess.check_output(cmd, text=True).strip() # noqa: S603
9292
logging.info(f"Current filesystem type (findmnt): {fs_type}")
93-
# tmpfs is supported since 13.2 (probably), 1.18 definitely seems fine:
94-
if cufileVersionLessThan(1180):
95-
supported_fs_types = ("ext4", "xfs")
96-
else:
97-
supported_fs_types = ("ext4", "xfs", "tmpfs")
93+
94+
if fs_type == "overlay" and os.environ.get("CI") is not None:
95+
# Things seems to be fine on CI tmpfiles which report as "overlay".
96+
# (Previously the build folder reporting as ext4 was not fine, though.)
97+
return
98+
99+
# Newer versions may actuall support more (e.g. tmpfs)
100+
supported_fs_types = ("ext4", "xfs")
98101
if fs_type not in supported_fs_types:
99102
pytest.skip(f"cuFile handle_register does not support filesystem: {fs_type}")
100103

0 commit comments

Comments
 (0)