Whamcloud - gitweb
LU-2253 tests: fix typo in test_2 of s-q 41/7341/2
authorNiu Yawei <yawei.niu@intel.com>
Thu, 15 Aug 2013 10:54:00 +0000 (06:54 -0400)
committerJohann Lombardi <johann.lombardi@intel.com>
Tue, 20 Aug 2013 06:19:58 +0000 (06:19 +0000)
In test_2 of s-q, the awk column number should be changed from
5 to 4 when replacing the 'lfs df' with 'lfs_df'.

Test-Parameters: envdefinitions=SLOW=yes testlist=sanity-quota

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ia37df21915dd631c9ee7d8c46249291dc1a6f6b5
Reviewed-on: http://review.whamcloud.com/7341
Tested-by: Hudson
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/tests/sanity-quota.sh

index 85a9ba0..3861a69 100644 (file)
@@ -480,7 +480,7 @@ test_2() {
 
        [ "$SLOW" = "no" ] && LIMIT=1024 # 1k inodes
 
-       local FREE_INODES=$(lfs_df -i | grep "summary" | awk '{print $5}')
+       local FREE_INODES=$(lfs_df -i | grep "summary" | awk '{print $4}')
        [ $FREE_INODES -lt $LIMIT ] &&
                skip "not enough free inodes $FREE_INODES required $LIMIT" &&
                return