Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2014 10:42:59 +0000 (UTC)
From:      Julio Merino <jmmv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263084 - head/tools/regression/sbin/mdconfig
Message-ID:  <201403121042.s2CAgxMj025238@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



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