forked from OSchip/llvm-project
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:
parent
705ba07ef0
commit
cf7f74e31c
|
@ -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!"
|
||||
|
||||
|
|
Loading…
Reference in New Issue