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.1.5~35 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9b15527f387d7730daf668b408bf9c75d72e575f;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 981691d..813fdab 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -1738,7 +1738,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