diff options
author | Poornima G <pgurusid@redhat.com> | 2016-09-07 15:47:14 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2016-12-19 01:34:45 -0800 |
commit | bcb4712ebf10a3f0b4d0c677b031d812153ecdcd (patch) | |
tree | 96120191e38130572b1186ee7eb83ddfc0500b2e | |
parent | 85af5074545ce7d1f74af391001c495c080b2fe3 (diff) |
tests: Fix one of the md-cache test cases
Verify if the unlink, rename and other ops are reflected both on
the current mount and other mounts.
>Reviewed-on: http://review.gluster.org/15419
>Smoke: Gluster Build System <jenkins@build.gluster.org>
>NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
>CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
>Reviewed-by: Vijay Bellur <vbellur@redhat.com>
>(cherry picked from commit 0fd7d0e1c78fdbedfcdb085445c4b0be3c1a97a9)
Change-Id: I5a296cdd557194dcf487e65ee4a14bbeaf4be690
BUG: 1399450
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/15960
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
-rwxr-xr-x | tests/bugs/md-cache/bug-1211863_unlink.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bugs/md-cache/bug-1211863_unlink.t b/tests/bugs/md-cache/bug-1211863_unlink.t index f83d3d7f83a..34392ed919f 100755 --- a/tests/bugs/md-cache/bug-1211863_unlink.t +++ b/tests/bugs/md-cache/bug-1211863_unlink.t @@ -37,9 +37,13 @@ TEST ls -l $M1/dir1/file3 TEST rm $M0/dir1/file2 TEST mv $M0/dir1/file3 $M0/dir1/file6 -## Check if the files are not visible from M0 +## Check if the files are not visible from both M0 and M1 EXPECT_WITHIN $MDC_TIMEOUT "N" path_exists $M0/dir1/file2 EXPECT_WITHIN $MDC_TIMEOUT "N" path_exists $M0/dir1/file3 EXPECT_WITHIN $MDC_TIMEOUT "Y" path_exists $M0/dir1/file6 +EXPECT_WITHIN $MDC_TIMEOUT "N" path_exists $M1/dir1/file2 +EXPECT_WITHIN $MDC_TIMEOUT "N" path_exists $M1/dir1/file3 +EXPECT_WITHIN $MDC_TIMEOUT "Y" path_exists $M1/dir1/file6 + cleanup; |