Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 22,31 ****
--- 22,35 ----
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+ #
+ # Copyright (c) 2016 by Delphix. All rights reserved.
+ #
+
. $STF_SUITE/include/libtest.shlib
#
# Create a file or direcotry
#
*** 41,59 ****
destroy_object $object
case $type in
dir)
! $MKDIR -p $object
;;
file)
! $ECHO "ZFS test suites" > $object
;;
esac
if [[ -n $owner ]]; then
! $CHOWN $owner $object
fi
return 0
}
#
--- 45,63 ----
destroy_object $object
case $type in
dir)
! mkdir -p $object
;;
file)
! echo "ZFS test suites" > $object
;;
esac
if [[ -n $owner ]]; then
! chown $owner $object
fi
return 0
}
#
*** 67,76 ****
if [[ -e $object ]]; then
# clear_attribute is a common function name,
# but each case should have their own implement.
log_must clear_attribute $object
! log_must $RM -rf $object
fi
done
return 0
}
--- 71,80 ----
if [[ -e $object ]]; then
# clear_attribute is a common function name,
# but each case should have their own implement.
log_must clear_attribute $object
! log_must rm -rf $object
fi
done
return 0
}