Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2015 23:11:01 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r290958 - user/ngie/more-tests2/sbin/geom/class/tests
Message-ID:  <201511162311.tAGNB1JT002696@repo.freebsd.org>

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



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