Skip to content
Snippets Groups Projects
Commit d194d953 authored by Nathan Wilcox's avatar Nathan Wilcox
Browse files

DEV-44838 - Fix a logic flaw in the windows run() retry code which would...

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 bee98d70
No related branches found
No related tags found
No related merge requests found
......@@ -596,7 +596,9 @@ def run(self, command, name=None, retry_on=None, retries=1):
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment