Files
mergerfs/tests/TEST_no_fuse_hidden
Antonio SJ Musumeci 943f91ff98 Strengthen mergerfs integration tests
- Make the test runner fail on failed tests and report explicit skips
- Strengthen assertions for O_DIRECT, LUP policy, EXDEV fallback, and xattrs
- Fix cleanup and file descriptor handling across test scripts
2026-04-29 20:25:20 -04:00

27 lines
486 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
import tempfile
def main():
(fd, filepath) = tempfile.mkstemp(dir=sys.argv[1])
os.unlink(filepath)
found = False
for entry in os.scandir(sys.argv[1]):
if entry.name.startswith(".fuse_hidden"):
print("found .fuse_hidden file {}".format(entry.name), end='')
found = True
os.close(fd)
if found:
return 1
return 0
if __name__ == "__main__":
raise SystemExit(main())