Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2016 02:22:45 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293028 - head/tools/regression
Message-ID:  <201601010222.u012Mjpo043509@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri Jan  1 02:22:45 2016
New Revision: 293028
URL: https://svnweb.freebsd.org/changeset/base/293028

Log:
  - 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

Modified:
  head/tools/regression/geom_subr.sh

Modified: head/tools/regression/geom_subr.sh
==============================================================================
--- head/tools/regression/geom_subr.sh	Fri Jan  1 01:04:53 2016	(r293027)
+++ head/tools/regression/geom_subr.sh	Fri Jan  1 02:22:45 2016	(r293028)
@@ -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()
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601010222.u012Mjpo043509>