Date: Wed, 25 Nov 2015 04:11:26 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r291288 - user/ngie/more-tests2/sbin/geom/class/tests/uzip Message-ID: <201511250411.tAP4BQVL031924@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Wed Nov 25 04:11:25 2015 New Revision: 291288 URL: https://svnweb.freebsd.org/changeset/base/291288 Log: Move the mntpoint definition down so the mktemp call get get a temporary directory under $TMPDIR instead of the current directory Modified: user/ngie/more-tests2/sbin/geom/class/tests/uzip/conf.sh Modified: user/ngie/more-tests2/sbin/geom/class/tests/uzip/conf.sh ============================================================================== --- user/ngie/more-tests2/sbin/geom/class/tests/uzip/conf.sh Wed Nov 25 04:10:03 2015 (r291287) +++ user/ngie/more-tests2/sbin/geom/class/tests/uzip/conf.sh Wed Nov 25 04:11:25 2015 (r291288) @@ -3,7 +3,6 @@ class="uzip" base=`basename $0` -mntpoint=$(mktemp -d tmp.XXXXXX) || exit uzip_test_cleanup() { @@ -14,3 +13,6 @@ uzip_test_cleanup() trap uzip_test_cleanup ABRT EXIT INT TERM . `dirname $0`/../geom_subr.sh + +# NOTE: make sure $TMPDIR has been set by geom_subr.sh if unset [by kyua, etc] +mntpoint=$(mktemp -d tmp.XXXXXX) || exit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511250411.tAP4BQVL031924>