summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2016-04-12 09:43:13 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-04-12 09:30:26 -0700
commit59aa2e8790a3b70e357463a3b26ee0a10742ecb7 (patch)
tree03379448c6bb1f63c93147f04be9f1c70806b2dd /tests/include.rc
parenteb7cbf37df611fc5288eb75c7d46ef44fe7d6bab (diff)
tests: fix regression failure from bug-1322772-real-path-fix-for-snapshot.t
There is no need to unmount the brick as doing so we loose all the xattrs on the brick and while restarting glusterd brick doesn't come up Change-Id: Ic1fa8b72f6cfcad564c62bcef1d022b083263ecc Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/13974 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 2beb4e676af..13a5188a34e 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -333,6 +333,12 @@ function _TEST_IN_LOOP()
_TEST $@
}
+function _EXPECT_WITHIN_TEST_IN_LOOP()
+{
+ testcnt=`expr $testcnt + 1`;
+ _EXPECT_WITHIN $@
+}
+
which killall > /dev/null || {
killall() {
pkill $@
@@ -800,6 +806,7 @@ alias TEST='_TEST $LINENO'
alias EXPECT_WITHIN='_EXPECT_WITHIN $LINENO'
alias EXPECT_KEYWORD='_EXPECT_KEYWORD $LINENO'
alias TEST_IN_LOOP='_TEST_IN_LOOP $LINENO'
+alias EXPECT_WITHIN_TEST_IN_LOOP='_EXPECT_WITHIN_TEST_IN_LOOP $LINENO'
shopt -s expand_aliases
if [ x"$OSTYPE" = x"Linux" ]; then