svn commit: r290958 - user/ngie/more-tests2/sbin/geom/class/tests

Garrett Cooper ngie at FreeBSD.org
Mon Nov 16 23:11:03 UTC 2015


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
 }


More information about the svn-src-user mailing list