test-copy: log correct error

This commit is contained in:
Zbigniew Jędrzejewski-Szmek committed 2026-11-04 00:27:28 +01:00
1 parent 830f4364de
commit 6edee8fac6
1 file changed
+1 -1
+1 -1
View File
@@ -987,7 +987,7 @@ TEST_RET(copy_with_verity) {
int r = copy_tree_at(src, ".", dst, ".", UID_INVALID, GID_INVALID, COPY_REPLACE|COPY_MERGE|COPY_PRESERVE_FS_VERITY, /* denylist= */ NULL, /* subvolumes= */ NULL);
if (r == -ESOCKTNOSUPPORT)
/* This can happen on some versions of btrfs, for example */
return log_tests_skipped_errno(errno, "/var/tmp: fs-verity supported, but not reading metadata");
return log_tests_skipped_errno(r, "/var/tmp: fs-verity supported, but not reading metadata");
ASSERT_OK(r);
FOREACH_ELEMENT(file, files)
assert_fsverity_eq(src, dst, *file);