Skip test component_selection:run_latest_genid if gmirror/gnop GEOM classes

aren't available

PR:		237051
Reviewed by:	asomers, imp, ngie, emaste (IRC)
Approved by:	ngie
MFC after:	 1 month
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D19958
This commit is contained in:
Olivier Cochard 2019-04-23 21:07:47 +00:00
parent 64ca9a7ff6
commit 9583ab8aa3

View File

@ -1,5 +1,9 @@
# $FreeBSD$
ATF_TEST=true
class=mirror
. $(atf_get_srcdir)/conf.sh
atf_test_case run_latest_genid cleanup
run_latest_genid_head()
{
@ -9,7 +13,10 @@ run_latest_genid_head()
}
run_latest_genid_body()
{
. $(atf_get_srcdir)/conf.sh
geom_atf_test_setup
if ! error_message=$(geom_load_class_if_needed nop); then
atf_skip "$error_message"
fi
f1=$(mktemp ${base}.XXXXXX)
f2=$(mktemp ${base}.XXXXXX)