Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 797697 - Reduce total wait/retry ability of waitForDevice() down …
Browse files Browse the repository at this point in the history
…to something sane. r=jmaher, f=armenzg
  • Loading branch information
Callek committed Oct 5, 2012
1 parent 732face commit a168e7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sut_tools/config.py
Expand Up @@ -62,14 +62,14 @@ def waitForDevice(waitTime=60):
time.sleep(waitTime)
tegraIsBack = False
tries = 0
maxTries = 20
while tries <= maxTries:
maxTries = 3
while tries < maxTries:
tries += 1
print "Try %d" % tries
if checkDeviceRoot() is not None:
tegraIsBack = True
break
time.sleep(60)
time.sleep(waitTime)
if not tegraIsBack:
print("Remote Device Error: waiting for tegra timed out.")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion sut_tools/reboot.py
Expand Up @@ -25,7 +25,7 @@ def reboot(dm):
log.info(status)
finally:
try:
waitForDevice(dm, waitTime=600)
waitForDevice(dm, waitTime=300)
except SystemExit:
clearFlag(proxyFile)
setFlag(errorFile, "Remote Device Error: call for device reboot failed")
Expand Down
4 changes: 2 additions & 2 deletions sut_tools/sut_lib.py
Expand Up @@ -471,8 +471,8 @@ def waitForDevice(dm, waitTime=60):
time.sleep(waitTime)
tegraIsBack = False
tries = 0
maxTries = 20
while tries <= maxTries:
maxTries = 3
while tries < maxTries:
tries += 1
log.info("Try %d" % tries)
if dm._sock:
Expand Down

0 comments on commit a168e7b

Please sign in to comment.