summaryrefslogtreecommitdiffstats
path: root/tests/sys/geom/class/geom_subr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys/geom/class/geom_subr.sh')
-rw-r--r--tests/sys/geom/class/geom_subr.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/sys/geom/class/geom_subr.sh b/tests/sys/geom/class/geom_subr.sh
index b437183..b03ee43 100644
--- a/tests/sys/geom/class/geom_subr.sh
+++ b/tests/sys/geom/class/geom_subr.sh
@@ -35,16 +35,14 @@ geom_test_cleanup()
}
if [ $(id -u) -ne 0 ]; then
- echo 'Tests must be run as root'
- echo 'Bail out!'
- exit 1
+ echo '1..0 # SKIP tests must be run as root'
+ exit 0
fi
# If the geom class isn't already loaded, try loading it.
if ! kldstat -q -m g_${class}; then
if ! geom ${class} load; then
- echo "Could not load module for geom class=${class}"
- echo 'Bail out!'
- exit 1
+ echo "1..0 # SKIP could not load module for geom class=${class}"
+ exit 0
fi
fi
OpenPOWER on IntegriCloud