Whamcloud - gitweb
LU-661 tests: don't check file-2 in replay-dual 0b
authorMikhail Pershin <tappro@whamcloud.com>
Tue, 22 Nov 2011 06:59:26 +0000 (10:59 +0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 26 Jan 2013 03:31:46 +0000 (22:31 -0500)
It is uncertain was it replayed on not yet, so it might exist
and test will fail. Remove wrong check from test

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I724f389f0504f3c8c388b2b271b3a64cb61339ab
Reviewed-on: http://review.whamcloud.com/4999
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/tests/replay-dual.sh

index 07969a1..e859a21 100755 (executable)
@@ -100,7 +100,8 @@ test_0b() {
     umount -f $MOUNT1
     zconf_mount `hostname` $MOUNT1 || error "mount1 fais"
     zconf_mount `hostname` $MOUNT2 || error "mount2 fais"
-    checkstat $MOUNT1/$tfile-2 && return 1
+    # it is uncertain if file-2 exists or not, remove it if it does
+    checkstat $MOUNT1/$tfile-2 && rm $MOUNT1/$tfile-2
     checkstat $MOUNT2/$tfile && return 2
     return 0
 }