From owner-svn-src-user@freebsd.org Mon Nov 16 23:11:03 2015 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B42BA301C6 for ; Mon, 16 Nov 2015 23:11:03 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5CED1A19; Mon, 16 Nov 2015 23:11:02 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAGNB1l1002697; Mon, 16 Nov 2015 23:11:01 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAGNB1JT002696; Mon, 16 Nov 2015 23:11:01 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201511162311.tAGNB1JT002696@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Mon, 16 Nov 2015 23:11:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r290958 - user/ngie/more-tests2/sbin/geom/class/tests X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 23:11:03 -0000 Author: ngie Date: Mon Nov 16 23:11:01 2015 New Revision: 290958 URL: https://svnweb.freebsd.org/changeset/base/290958 Log: Mute noise if no md(4) devices were attached Modified: user/ngie/more-tests2/sbin/geom/class/tests/geom_subr.sh Modified: user/ngie/more-tests2/sbin/geom/class/tests/geom_subr.sh ============================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/geom_subr.sh Mon Nov 16 23:02:33 2015 (r290957) +++ user/ngie/more-tests2/sbin/geom/class/tests/geom_subr.sh Mon Nov 16 23:11:01 2015 (r290958) @@ -37,9 +37,11 @@ geom_test_cleanup() { local test_md - while read test_md; do - # The "#" tells the TAP parser this is a comment - echo "# Removing test memory disk: $test_md" - mdconfig -d -u $test_md - done < $TEST_MDS_FILE + if [ -f $TEST_MDS_FILE ]; then + while read test_md; do + # The "#" tells the TAP parser this is a comment + echo "# Removing test memory disk: $test_md" + mdconfig -d -u $test_md + done < $TEST_MDS_FILE + fi }