DEV-44838 - Fix a logic flaw in the windows run() retry code which would re-execute a process if its exit status was 0.

master
Nathan Wilcox 2010-01-13 16:09:07 -08:00
parent bee98d70e3
commit d194d95391
1 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,9 @@ class WindowsSetup(PlatformSetup):
print "develop.py tries to run:", command
ret = subprocess.call(command, executable=path)
print "got ret", ret, "from", command
if ret:
if ret == 0:
break
else:
error = 'exited with status %d' % ret
if retry_on is not None and retry_on == ret:
print "Retrying... the command %r %s" % (name, error)