aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndriy Gapon <[email protected]>2016-03-25 16:29:35 +0200
committerBrian Behlendorf <[email protected]>2016-03-31 09:48:41 -0700
commitbebd73f2c3822a86863e7508e7a3e2929d871113 (patch)
tree81139e280b1c4585bae3eac4f3ebe5c4e2bdd583 /tests
parent88cfff182432e4d1c24c877f33b47ee6cf109eee (diff)
Expand EDQUOT variable
Results in failures with ksh version 93v- 2014-06-25. This appears to not be an issue with ksh version 93u+ 2012-08-01. The expanded versions works correctly for both. Signed-off-by: Andriy Gapon <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4452
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/tests/functional/quota/quota.kshlib6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/quota/quota.kshlib b/tests/zfs-tests/tests/functional/quota/quota.kshlib
index 7ca111abe..3805a447b 100644
--- a/tests/zfs-tests/tests/functional/quota/quota.kshlib
+++ b/tests/zfs-tests/tests/functional/quota/quota.kshlib
@@ -57,7 +57,7 @@ function fill_quota
$FILE_WRITE -o create -f $MNTPT/$TESTFILE1 -b $BLOCK_SIZE \
-c $write_size -d 0
zret=$?
- [[ $zret -ne EDQUOT ]] && \
+ [[ $zret -ne $EDQUOT ]] && \
log_fail "Returned error code: $zret. Expected: $EDQUOT."
typeset -i file_size=`$LS -ls $MNTPT/$TESTFILE1 | $AWK '{ print $1 }'`
@@ -89,7 +89,7 @@ function exceed_quota
$FILE_WRITE -o create -f $MNTPT/$TESTFILE2 \
-b $BLOCK_SIZE -c $write_size -d 0
zret=$?
- [[ $zret -ne EDQUOT ]] && \
- log_fail "Returned error code: $zret. Expected: EDQUOT."
+ [[ $zret -ne $EDQUOT ]] && \
+ log_fail "Returned error code: $zret. Expected: $EDQUOT."
return 0
}