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>
@@ -24,11 +24,11 @@
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
-# Copyright (c) 2013 by Delphix. All rights reserved.
+# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
@@ -58,11 +58,11 @@
#
# This test should be run on a multi-processor system because otherwise the FS
# will not be concurrently used by the threads
#
-NCPUS=`$PSRINFO | $WC -l`
+NCPUS=`psrinfo | wc -l`
if [[ -z $NCPUS || $NCPUS -le 1 ]]; then
log_fail "This test should be executed on a multi-processor system."
fi
#
@@ -72,11 +72,11 @@
log_must $THREADSAPPEND ${TESTDIR}/${TESTFILE}
#
# Check the size of the resulting file
#
-SIZE=`$LS -l ${TESTDIR}/${TESTFILE} | $AWK '{print $5}'`
+SIZE=`ls -l ${TESTDIR}/${TESTFILE} | awk '{print $5}'`
if [[ $SIZE -ne $FILE_SIZE ]]; then
log_fail "'The length of ${TESTDIR}/${TESTFILE}' doesnt equal 1310720."
fi
log_pass "Multiple thread appends succeeded. File size as expected"