]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tests/sys/geom/class/uzip/conf.sh
MFC r294973:
[FreeBSD/stable/10.git] / tests / sys / geom / class / uzip / conf.sh
1 #!/bin/sh
2 # $FreeBSD$
3
4 class="uzip"
5 base=`basename $0`
6
7 uzip_test_cleanup()
8 {
9         if [ -n "$mntpoint" ]; then
10                 umount $mntpoint
11                 rmdir $mntpoint
12         fi
13         geom_test_cleanup
14 }
15 trap uzip_test_cleanup ABRT EXIT INT TERM
16
17 . `dirname $0`/../geom_subr.sh
18
19 # NOTE: make sure $TMPDIR has been set by geom_subr.sh if unset [by kyua, etc]
20 mntpoint=$(mktemp -d tmp.XXXXXX) || exit