diff options
Diffstat (limited to 'tests/sys/geom/class/stripe/conf.sh')
-rwxr-xr-x | tests/sys/geom/class/stripe/conf.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sys/geom/class/stripe/conf.sh b/tests/sys/geom/class/stripe/conf.sh new file mode 100755 index 0000000..fd0f41c --- /dev/null +++ b/tests/sys/geom/class/stripe/conf.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# $FreeBSD$ + +name="$(mktemp -u stripe.XXXXXX)" +class="stripe" +base=`basename $0` + +gstripe_test_cleanup() +{ + [ -c /dev/$class/$name ] && gstripe destroy $name + geom_test_cleanup +} +trap gstripe_test_cleanup ABRT EXIT INT TERM + +. `dirname $0`/../geom_subr.sh |