mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-07-17 06:38:53 +00:00
test: do not skip test if a backend is disabled
For `ATX_CHECK_FS()` and `ATX_CHECK_FS_NEW()`, do not skip the test if a backend (or its "-write" feature) is disabled, since `exit 77` skips the entire test group, not current `AT_CHECK()`. Instead, silently pass the current test.
This commit is contained in:
parent
dad1984d7f
commit
72d55ed68f
1 changed files with 4 additions and 2 deletions
|
@ -125,8 +125,9 @@ dnl Check for a BookmarkFS filesystem.
|
|||
dnl
|
||||
m4_define([ATX_CHECK_FS], [
|
||||
ATX_CHECK_SIMPLE([
|
||||
ATX_FEAT_PREREQ([bookmarkfs-mount], [backend-$1])
|
||||
ATX_FEAT_PREREQ([bookmarkfs-mount])
|
||||
$5
|
||||
ATX_FEAT_IF([backend-$1], , [exit])
|
||||
"$buildsrcdir/mount.bookmarkfs" -F \
|
||||
-o "backend=ATX_OPT_MODULE([backend_$1])" \
|
||||
-o "fsname=check-$1,no_sandbox,$2" \
|
||||
|
@ -153,8 +154,9 @@ dnl created with mkfs.bookmarkfs.
|
|||
dnl
|
||||
m4_define([ATX_CHECK_FS_NEW], [
|
||||
ATX_CHECK_FS([$1], [rw,$2], [bookmarks-$1], [$3], [
|
||||
ATX_FEAT_PREREQ([bookmarkfs-mkfs], [backend-$1-write])
|
||||
ATX_FEAT_PREREQ([bookmarkfs-mkfs])
|
||||
$4
|
||||
ATX_FEAT_IF([backend-$1-write], , [exit])
|
||||
"$buildsrcdir/mkfs.bookmarkfs" \
|
||||
-o "backend=ATX_OPT_MODULE([backend_$1]),force" \
|
||||
"bookmarks-$1" || exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue