mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-20 00:17:43 +00:00
- 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
27 lines
486 B
Python
Executable File
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()) |