Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Dec 2016 12:35:11 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Ngie Cooper <ngie@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r309774 - head/contrib/netbsd-tests/fs/tmpfs
Message-ID:  <20161210103511.GO54029@kib.kiev.ua>
In-Reply-To: <201612092250.uB9MohnP008576@repo.freebsd.org>
References:  <201612092250.uB9MohnP008576@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 09, 2016 at 10:50:43PM +0000, Ngie Cooper wrote:
> 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
Why this test is under fs/tmpfs ?  I was not able to see how tmpfs is
used for this test.



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