Whamcloud - gitweb
LU-4713 test: Add a check to test_237 in sanity.sh 88/10088/3
authorSwapnil Pimpale <spimpale@ddn.com>
Thu, 24 Apr 2014 17:42:08 +0000 (23:12 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 20 Jun 2014 04:36:46 +0000 (04:36 +0000)
This patch adds a check to test_237 in sanity.sh to check whether
write to the file succeeded or not.

Test-Parameters: clientdistro=sles11sp3 testlist=sanity envdefinitions=ONLY=237
Signed-off-by: Swapnil Pimpale <spimpale@ddn.com>
Change-Id: Id81f9bf01ead516c3b0e7f247ff71550d4a9847e
Reviewed-on: http://review.whamcloud.com/10088
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index 4df82e1..050dde2 100644 (file)
@@ -12667,7 +12667,8 @@ run_test 236 "Layout swap on open unlinked file"
 # The new system calls are supported in glibc >= 2.14.
 
 test_237() {
-       echo "Test file_handle syscalls" > $DIR/$tfile
+       echo "Test file_handle syscalls" > $DIR/$tfile ||
+               error "write failed"
        check_fhandle_syscalls $DIR/$tfile ||
                error "check_fhandle_syscalls failed"
 }