From bebd73f2c3822a86863e7508e7a3e2929d871113 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 25 Mar 2016 16:29:35 +0200 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Closes #4452 --- tests/zfs-tests/tests/functional/quota/quota.kshlib | 6 +++--- 1 file 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 7ca111abef..3805a447bd 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 }