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,10 +22,14 @@
#
# 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,19 +45,19 @@
destroy_object $object
case $type in
dir)
- $MKDIR -p $object
+ mkdir -p $object
;;
file)
- $ECHO "ZFS test suites" > $object
+ echo "ZFS test suites" > $object
;;
esac
if [[ -n $owner ]]; then
- $CHOWN $owner $object
+ chown $owner $object
fi
return 0
}
#
@@ -67,10 +71,10 @@
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
+ log_must rm -rf $object
fi
done
return 0
}