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 2009 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
#
@@ -44,13 +44,13 @@
verify_runnable "global"
log_assert "zpool set version can upgrade a pool"
for version in 1 2 3 4 5 6 7 8
do
- log_must $ZPOOL set version=$version $TESTPOOL
- ACTUAL=$($ZPOOL get version $TESTPOOL | $GREP version \
- | $AWK '{print $3}')
+ log_must zpool set version=$version $TESTPOOL
+ ACTUAL=$(zpool get version $TESTPOOL | grep version \
+ | awk '{print $3}')
if [ "$ACTUAL" != "$version" ]
then
log_fail "v. $ACTUAL set for $TESTPOOL, expected v. $version!"
fi
done