summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-01-01 00:16:54 +0000
committerngie <ngie@FreeBSD.org>2016-01-01 00:16:54 +0000
commitad4c61ab7de7788d6ad70fec42a692af70c00f9d (patch)
treec2b8507c789cdb458531ed58d3b1e2301cf222e2 /tests
parenta859d88d20a0d54589ef14cbf1b9944bc053d67a (diff)
downloadFreeBSD-src-ad4c61ab7de7788d6ad70fec42a692af70c00f9d.zip
FreeBSD-src-ad4c61ab7de7788d6ad70fec42a692af70c00f9d.tar.gz
Only try to unmount/remove mountpt if it's defined
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sys/geom/class/uzip/conf.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sys/geom/class/uzip/conf.sh b/tests/sys/geom/class/uzip/conf.sh
index 8a3b459..9a22841 100755
--- a/tests/sys/geom/class/uzip/conf.sh
+++ b/tests/sys/geom/class/uzip/conf.sh
@@ -6,8 +6,10 @@ base=`basename $0`
uzip_test_cleanup()
{
- umount $mntpoint
- rmdir $mntpoint
+ if [ -n "$mntpoint" ]; then
+ umount $mntpoint
+ rmdir $mntpoint
+ fi
geom_test_cleanup
}
trap uzip_test_cleanup ABRT EXIT INT TERM
OpenPOWER on IntegriCloud