svn commit: r263084 - head/tools/regression/sbin/mdconfig

Julio Merino jmmv at FreeBSD.org
Wed Mar 12 10:42:59 UTC 2014


Author: jmmv
Date: Wed Mar 12 10:42:58 2014
New Revision: 263084
URL: http://svnweb.freebsd.org/changeset/base/263084

Log:
  Turn a test precondition into a skip in the mdconfig tests.
  
  Tests that cannot be run because a precondition is not met should be
  marked as skipped, not failed.  Do this for the tests in mdconfig that
  first check if the caller user is root.

Modified:
  head/tools/regression/sbin/mdconfig/00.t

Modified: head/tools/regression/sbin/mdconfig/00.t
==============================================================================
--- head/tools/regression/sbin/mdconfig/00.t	Wed Mar 12 10:41:14 2014	(r263083)
+++ head/tools/regression/sbin/mdconfig/00.t	Wed Mar 12 10:42:58 2014	(r263084)
@@ -32,8 +32,8 @@
 echo "1..1"
 
 if [ `whoami` != "root" ]; then
-	echo "not ok 1 - you need to be root to run this test."
-	exit 1
+	echo "ok 1 # skip You need to be root to run this test."
+	exit 0
 fi
 
 TESTDIR=$(dirname $(realpath $0))


More information about the svn-src-head mailing list