diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-03-12 10:42:58 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-03-12 10:42:58 +0000 |
commit | 273f6bdcc9731d0fc968f43b20fc3571852d0b3c (patch) | |
tree | 55c3de18d2bc3656601b02a641ecbdbd9bf50f17 /tools/regression | |
parent | 142e11049ea5932e42f35c24a7d81e86028e9113 (diff) | |
download | FreeBSD-src-273f6bdcc9731d0fc968f43b20fc3571852d0b3c.zip FreeBSD-src-273f6bdcc9731d0fc968f43b20fc3571852d0b3c.tar.gz |
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.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/sbin/mdconfig/00.t | 4 |
1 files 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)) |