Skip to content

Commit

Permalink
Low: cts: NearQuorumPointTest - Wait for any nodes left up to notice …
Browse files Browse the repository at this point in the history
…the nodes we're stopping leave

Mercurial revision: bb2a64d3adf5ee00fa5c0a7e1d9ecdb646ee48e1
  • Loading branch information
beekhof committed Feb 11, 2009
1 parent 868149c commit 32dd4c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cts/CTStests.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ class StonithdTest(CTSTest):

return self.success()

def errorstoignore(self):
return [ "Executing .* fencing operation" ]

def is_applicable(self):
if self.CM.Env.has_key("DoStonith"):
return self.CM.Env["DoStonith"]
Expand Down Expand Up @@ -1708,6 +1711,10 @@ class NearQuorumPointTest(CTSTest):
if self.CM.ShouldBeStatus[node] == "down":
#watchpats.append(self.CM["Pat:Slave_started"] % node)
watchpats.append(self.CM["Pat:Local_started"] % node)
else:
for stopping in stopset:
if self.CM.ShouldBeStatus[stopping] == "up":
watchpats.append(self.CM["Pat:They_stopped"] % (node, stopping))

if len(watchpats) == 0:
return self.skipped()
Expand Down

0 comments on commit 32dd4c1

Please sign in to comment.