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 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 
+#
+# Copyright (c) 2016 by Delphix. All rights reserved.
+#
+
 . $STF_SUITE/tests/functional/atime/atime.cfg
 . $STF_SUITE/include/libtest.shlib
 
 #
 # Check if the access time for specified file is updated.

@@ -38,13 +42,13 @@
 #
 function check_atime_updated
 {
         typeset filename=$1
 
-        typeset before=$($LS -Eu $filename | $AWK '{print $7}')
-        log_must $CAT $filename
-        typeset after=$($LS -Eu $filename | $AWK '{print $7}')
+        typeset before=$(ls -Eu $filename | awk '{print $7}')
+        log_must cat $filename
+        typeset after=$(ls -Eu $filename | awk '{print $7}')
 
         if [[ $before != $after ]]; then
                 return 0
         else
                 return 1

@@ -52,11 +56,11 @@
 }
 
 function setup_snap_clone
 {
         # Create two file to verify snapshot.
-        log_must $TOUCH $TESTDIR/$TESTFILE
+        log_must touch $TESTDIR/$TESTFILE
 
         create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
         create_clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
 }