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
This commit is contained in:
Antonio SJ Musumeci 2026-04-29 17:44:22 -05:00
parent ef1e01b5a5
commit 92b3af3127
33 changed files with 846 additions and 484 deletions

View file

@ -187,7 +187,6 @@ def main():
return 0
finally:
cleanup_dir(merge_base)
try:
os.chmod(paths["merge_private_dir"], 0o700)
except (FileNotFoundError, PermissionError):
@ -198,30 +197,7 @@ def main():
except (FileNotFoundError, PermissionError):
pass
for p in (
paths["merge_private_link"],
paths["native_private_link"],
paths["merge_link"],
paths["native_link"],
paths["merge_regular"],
paths["native_regular"],
paths["merge_notdir"],
paths["native_notdir"],
paths["merge_loop"],
paths["native_loop"],
):
try:
os.unlink(p)
except FileNotFoundError:
pass
for p in (paths["merge_private_dir"], paths["native_private_dir"]):
try:
os.rmdir(p)
except FileNotFoundError:
pass
except OSError:
pass
cleanup_dir(merge_base)
if __name__ == "__main__":