diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 72bdfe9d8e21..2041125b3154 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -701,13 +701,11 @@ class TestBase(unittest2.TestCase): print >> sbuf, "runCmd failed!" print >> sbuf, self.res.GetError() - if running: - # For process launch, wait some time before possible next try. - time.sleep(self.timeWaitNextLaunch) - if self.res.Succeeded(): break elif running: + # For process launch, wait some time before possible next try. + time.sleep(self.timeWaitNextLaunch) with recording(self, True) as sbuf: print >> sbuf, "Command '" + cmd + "' failed!"