From owner-svn-src-head@FreeBSD.ORG Wed Mar 12 10:42:59 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8735FA0A; Wed, 12 Mar 2014 10:42:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73DD5A74; Wed, 12 Mar 2014 10:42:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2CAgxDp025239; Wed, 12 Mar 2014 10:42:59 GMT (envelope-from jmmv@svn.freebsd.org) Received: (from jmmv@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2CAgxMj025238; Wed, 12 Mar 2014 10:42:59 GMT (envelope-from jmmv@svn.freebsd.org) Message-Id: <201403121042.s2CAgxMj025238@svn.freebsd.org> From: Julio Merino Date: Wed, 12 Mar 2014 10:42:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263084 - head/tools/regression/sbin/mdconfig X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 10:42:59 -0000 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))