Whamcloud - gitweb
LU-6125 test: sanity test_27i defect: missing test_mkdir() 07/13407/4
authorElena Gryaznova <elena.gryaznova@seagate.com>
Tue, 3 Feb 2015 00:10:14 +0000 (04:10 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Feb 2015 02:39:30 +0000 (02:39 +0000)
Fix sanity test_27i() to call test_mkdir()

Signed-off-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Xyratex-bug-id: MRP-1194
Reviewed-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Change-Id: I093cb44590b98857189d69d1b8f6e9e9c423d3bc
Reviewed-on: http://review.whamcloud.com/13407
Tested-by: Jenkins
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index 6668329..18fb399 100644 (file)
@@ -1397,8 +1397,10 @@ test_27g() {
 run_test 27g "$GETSTRIPE with no objects"
 
 test_27i() {
-       touch $DIR/d27/fsome || error "touch failed"
-       [[ $($GETSTRIPE -c $DIR/d27/fsome) -gt 0 ]] || error "missing objects"
+       test_mkdir $DIR/$tdir
+       touch $DIR/$tdir/$tfile || error "touch failed"
+       [[ $($GETSTRIPE -c $DIR/$tdir/$tfile) -gt 0 ]] ||
+               error "missing objects"
 }
 run_test 27i "$GETSTRIPE with some objects"