summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_uzip/conf.sh
blob: 9a22841fdbe97e71670570d1158bc149bcefc501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $FreeBSD$

class="uzip"
base=`basename $0`

uzip_test_cleanup()
{
	if [ -n "$mntpoint" ]; then
		umount $mntpoint
		rmdir $mntpoint
	fi
	geom_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
OpenPOWER on IntegriCloud