The test suite was unnecessarily doing a time.sleep() after performing the

"process launch" or "run" interpreter command.  Let's do the sleep only if
the process launch failed.  This saves about 135 seconds from the whole test
suite run time.

llvm-svn: 123806
This commit is contained in:
Johnny Chen 2011-01-19 02:02:08 +00:00
parent 705ba07ef0
commit cf7f74e31c
1 changed files with 2 additions and 4 deletions

View File

@ -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!"