From 273f6bdcc9731d0fc968f43b20fc3571852d0b3c Mon Sep 17 00:00:00 2001 From: jmmv Date: Wed, 12 Mar 2014 10:42:58 +0000 Subject: 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. --- tools/regression/sbin/mdconfig/00.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/regression/sbin/mdconfig/00.t b/tools/regression/sbin/mdconfig/00.t index 94d1934..04e6d00 100644 --- a/tools/regression/sbin/mdconfig/00.t +++ b/tools/regression/sbin/mdconfig/00.t @@ -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)) -- cgit v1.1