From: Yu Jian Date: Thu, 30 Aug 2012 06:50:10 +0000 (+0800) Subject: LU-1486 tests: fix sanityn test_45g() to add error check X-Git-Tag: 2.3.60~21 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=6e94a9832e700fda3029edff4586646220c50679;p=fs%2Flustre-release.git LU-1486 tests: fix sanityn test_45g() to add error check This patch fixes sanityn test_45g() to add error check for "stat must fail". Signed-off-by: Yu Jian Change-Id: Iff65f2684244ab58e0d0cab68db0795f5604187e Reviewed-on: http://review.whamcloud.com/3826 Tested-by: Hudson Reviewed-by: Wei Liu Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 20179d9..50565a7 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -1970,7 +1970,7 @@ test_45g() { mv $DIR1/$tfile $DIR1/$tfile-2 & PID1=$! sleep 1 - stat $DIR2/$tfile > /dev/null && "stat must fail" + stat $DIR2/$tfile > /dev/null && error "stat must fail" check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; } rm -r $DIR1/* return 0