diff --git a/tests/TEST_rm_rf_concurrent b/tests/TEST_rm_rf_concurrent index a9710f85..a071fe1f 100755 --- a/tests/TEST_rm_rf_concurrent +++ b/tests/TEST_rm_rf_concurrent @@ -24,7 +24,9 @@ from posix_parity import fail from posix_parity import mergerfs_mount -OPTIONS = "defaults,cache.attr=0" +# minfreespace=0: the default 4G would fail every create with ENOSPC +# wherever the test tree has less free space. +OPTIONS = "defaults,minfreespace=0,cache.attr=0" SECONDS = 2.0 @@ -67,7 +69,9 @@ def concurrent_rm(mount): for proc in procs: _, err = proc.communicate() if proc.returncode != 0: - failures[err.decode().strip().splitlines()[-1].split(": ")[-1]] += 1 + lines = err.decode(errors="replace").strip().splitlines() + reason = lines[-1].split(": ")[-1] if lines else f"exit {proc.returncode}" + failures[reason] += 1 if os.path.lexists(top): failures["left behind"] += 1 subprocess.run(["rm", "-rf", top]) diff --git a/tests/TEST_use_dirfd_after_rmdir b/tests/TEST_use_dirfd_after_rmdir index e3db538a..790af2a5 100755 --- a/tests/TEST_use_dirfd_after_rmdir +++ b/tests/TEST_use_dirfd_after_rmdir @@ -28,7 +28,9 @@ from posix_parity import fail from posix_parity import mergerfs_mount -OPTIONS = "defaults,use_ino,category.create=mfs,cache.attr=0" +# minfreespace=0: the default 4G would fail every create with ENOSPC +# wherever the test tree has less free space. +OPTIONS = "defaults,use_ino,category.create=mfs,minfreespace=0,cache.attr=0" # A local filesystem returns ENOENT for these: the kernel refuses lookups # in a removed directory. Not compared against the native run since that