tests: Correctly skip single fsverity test
authorDan Nicholson <dbn@endlessos.org>
Thu, 25 Apr 2024 03:51:19 +0000 (21:51 -0600)
committerDan Nicholson <dbn@endlessos.org>
Thu, 25 Apr 2024 03:57:23 +0000 (21:57 -0600)
The skip shell function is for skipping an entire test plan. To skip a
single test result, a directive is needed[1]. Without this change, the
test suite errors claiming that 2 test plans were provided when fsverity
isn't available.

1. https://testanything.org/tap-specification.html#skipping-tests

tests/test-rofiles-fuse.sh

index 0ac55764f3ffbe192b8384065f07380a962bc719..b47bb36762ff7a0756f0e9984737f68b528e520f 100755 (executable)
@@ -208,5 +208,5 @@ if fsverity enable checkout-test2/nonhardlinked 2>err.txt; then
     assert_not_streq "${orig_inode}" "${new_inode}"
     echo "ok copyup fsverity"
 else
-    skip "no fsverity support: $(cat err.txt)"
-fi
\ No newline at end of file
+    echo "ok copyup fsverity # SKIP no fsverity support: $(cat err.txt)"
+fi