summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNathan Wilcox <inoshiro@lindenlab.com>2010-01-13 16:09:07 -0800
committerNathan Wilcox <inoshiro@lindenlab.com>2010-01-13 16:09:07 -0800
commitd194d95391f03b8a60c779f50f830df014e4b71e (patch)
tree7d0462372320842e6e2f7b65c7d63ff40b3f371d /indra
parentbee98d70e3a8eca7f6f6f80d4ee6a14939771ae0 (diff)
DEV-44838 - Fix a logic flaw in the windows run() retry code which would re-execute a process if its exit status was 0.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/develop.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/develop.py b/indra/develop.py
index a8a7b63aa7..0a2d3c5e52 100755
--- a/indra/develop.py
+++ b/indra/develop.py
@@ -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)