Whamcloud - gitweb
LU-7352 tests: conf-sanity 78 don't check missing files 58/20558/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 1 Jun 2016 21:50:40 +0000 (15:50 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 4 Jun 2016 23:30:34 +0000 (23:30 +0000)
Commit b666d02e13e stopped conf-sanity test_78 failing if all of
the required files could not be created.  However, the test also
checks later whether those files are still available after the
filesystem resize.  Reduce $num_files to match the number of
files actually created.

Test-Parameters: trivial envdefinitions=ONLY=78 testlist=conf-sanity,conf-sanity,conf-sanity,conf-sanity
Test-Parameters: trivial envdefinitions=ONLY=78 testlist=conf-sanity,conf-sanity,conf-sanity,conf-sanity
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I0ccfbd3f6597167c937e75cf9b5d0892cb5cab07
Reviewed-on: http://review.whamcloud.com/20558
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh

index 15b669e..9d0f17e 100755 (executable)
@@ -5193,7 +5193,10 @@ test_78() {
                        $LCTL get_param osc.*.cur*grant*
                        $LFS df; $LFS df -i;
                        # stop creating files if there is no more space
-                       [ -e $file ] || break
+                       if [ ! -e $file ]; then
+                               num_files=$((i - 1))
+                               break
+                       fi
 
                        $LFS getstripe -v $file
                        local ost_idx=$(LFS getstripe -i $file)