svn commit: r309774 - head/contrib/netbsd-tests/fs/tmpfs

Ngie Cooper ngie at FreeBSD.org
Fri Dec 9 22:50:44 UTC 2016


Author: ngie
Date: Fri Dec  9 22:50:43 2016
New Revision: 309774
URL: https://svnweb.freebsd.org/changeset/base/309774

Log:
  Only run mdconfig -d -u 3 if /dev/md3 exists on the system
  
  This will prevent "cleanup failures" (exit code != 0 returned) when
  tmpfs is not loaded
  
  MFC after:	1 week

Modified:
  head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh

Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh
==============================================================================
--- head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh	Fri Dec  9 22:13:00 2016	(r309773)
+++ head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh	Fri Dec  9 22:50:43 2016	(r309774)
@@ -85,7 +85,7 @@ basic_cleanup() {
 		umount mnt 2>/dev/null 1>&2
 		# Begin FreeBSD
 		if true; then
-			atf_check -s eq:0 -o empty -e empty mdconfig -d -u 3
+			[ ! -c /dev/md3 ] || mdconfig -d -u 3
 		else
 		# End FreeBSD
 		vndconfig -u /dev/vnd3 2>/dev/null 1>&2


More information about the svn-src-all mailing list