From 6e94a9832e700fda3029edff4586646220c50679 Mon Sep 17 00:00:00 2001 From: Yu Jian Date: Thu, 30 Aug 2012 14:50:10 +0800 Subject: [PATCH 1/1] 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 --- lustre/tests/sanityn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1