Enji Cooper d2ba5111c1 Make test scripts under tests/... non-executable
Executable bits should be set at install time instead of in the repo.
Setting executable bits on files triggers false positives with Phabricator.

MFC after:	2 months
2017-08-08 04:59:16 +00:00

21 lines
364 B
Bash

#!/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