From: Swapnil Pimpale Date: Thu, 24 Apr 2014 17:42:08 +0000 (+0530) Subject: LU-4713 test: Add a check to test_237 in sanity.sh X-Git-Tag: 2.6.0-RC1~63 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e0e07fac66c8175da9e6c723d58b482beba53a0f;hp=6b6f5fff222d210595eb2c19bc82cc3f1f84fe1c LU-4713 test: Add a check to test_237 in sanity.sh 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 Change-Id: Id81f9bf01ead516c3b0e7f247ff71550d4a9847e Reviewed-on: http://review.whamcloud.com/10088 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 4df82e1..050dde2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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" }