提交 a4852c16 编写于 作者: S Steven Li

Minor crash_gen tweaks

上级 d45929b1
...@@ -362,7 +362,7 @@ class ThreadCoordinator: ...@@ -362,7 +362,7 @@ class ThreadCoordinator:
# end, and maybe signal them to stop # end, and maybe signal them to stop
else: else:
raise raise
return transitionFailed # return transitionFailed # Why did we have this??!!
self.resetExecutedTasks() # clear the tasks after we are done self.resetExecutedTasks() # clear the tasks after we are done
# Get ready for next step # Get ready for next step
...@@ -1049,8 +1049,8 @@ class AnyState: ...@@ -1049,8 +1049,8 @@ class AnyState:
if task.isSuccess(): if task.isSuccess():
sCnt += 1 sCnt += 1
if (exists and sCnt <= 0): if (exists and sCnt <= 0):
raise RuntimeError( raise RuntimeError("Unexpected zero success for task type: {}, from tasks: {}"
"Unexpected zero success for task: {}".format(cls)) .format(cls, tasks))
def assertNoTask(self, tasks, cls): def assertNoTask(self, tasks, cls):
for task in tasks: for task in tasks:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册