git: 5990a88892c5 - main - tests/geom: fix ATF test listing when geom class module is missing
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Sep 2026 23:10:04 UTC
The branch main has been updated by olivier:
URL: https://cgit.FreeBSD.org/src/commit/?id=5990a88892c5003ce5ec160f261e70ea8bfe510b
commit 5990a88892c5003ce5ec160f261e70ea8bfe510b
Author: Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-09-29 23:01:48 +0000
Commit: Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-09-29 23:06:00 +0000
tests/geom: fix ATF test listing when geom class module is missing
geom_subr.sh serves both legacy TAP tests and ATF tests. It defaults to the
TAP path, so ATF tests must set ATF_TEST=true before sourcing it.
Sponsored by: Netflix
---
tests/sys/geom/class/label/basic.sh | 1 +
tests/sys/geom/class/zoned/conf.sh | 1 +
2 files changed, 2 insertions(+)
diff --git a/tests/sys/geom/class/label/basic.sh b/tests/sys/geom/class/label/basic.sh
index b67b41567c02..7349b1c3a529 100755
--- a/tests/sys/geom/class/label/basic.sh
+++ b/tests/sys/geom/class/label/basic.sh
@@ -27,6 +27,7 @@
#
class=label
+ATF_TEST=true
. $(atf_get_srcdir)/../geom_subr.sh
atf_test_case create cleanup
diff --git a/tests/sys/geom/class/zoned/conf.sh b/tests/sys/geom/class/zoned/conf.sh
index 01d9f0bd45d4..8c0b1e1ab42f 100644
--- a/tests/sys/geom/class/zoned/conf.sh
+++ b/tests/sys/geom/class/zoned/conf.sh
@@ -55,5 +55,6 @@ gzoned_test_cleanup()
true
}
+ATF_TEST=true
. `dirname $0`/../geom_subr.sh
. `dirname $0`/../zoned_subr.sh