diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-01 02:22:45 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-01 02:22:45 +0000 |
commit | e1ad05666fed2d75bd83515fa1c336daf0de9a33 (patch) | |
tree | db2ad7a107776aa827d5a6caeb03d8e2091c5b96 /tools/regression | |
parent | 9b181806d20526b3131763643956a41cb482b8e9 (diff) | |
download | FreeBSD-src-e1ad05666fed2d75bd83515fa1c336daf0de9a33.zip FreeBSD-src-e1ad05666fed2d75bd83515fa1c336daf0de9a33.tar.gz |
- Use geom <class> load instead of g<class> load; g<class> doesn't exist
for all geom classes, e.g. geom_uzip(4)
- These tests require root. Skip all of the tests if they're run as non-root
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/geom_subr.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/regression/geom_subr.sh b/tools/regression/geom_subr.sh index 6047829..8bc69c6 100644 --- a/tools/regression/geom_subr.sh +++ b/tools/regression/geom_subr.sh @@ -1,7 +1,12 @@ #!/bin/sh # $FreeBSD$ -kldstat -q -m g_${class} || g${class} load || exit 1 +if [ $(id -u) -ne 0 ]; then + echo 'Tests must be run as root' + echo 'Bail out!' + exit 1 +fi +kldstat -q -m g_${class} || geom ${class} load || exit 1 devwait() { |