DEV-44838 - Fix a logic flaw in the windows run() retry code which would re-execute a process if its exit status was 0.
parent
bee98d70e3
commit
d194d95391
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue