Commit 814d87fc authored by Eric Seidel's avatar Eric Seidel

Fix sky_tool's calling of adb, and shelldb's analyze and stop

Just silly fixes needed for our 4 copies of our python run script.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1064983003
parent 9717a173
...@@ -209,8 +209,19 @@ class StopSky(object): ...@@ -209,8 +209,19 @@ class StopSky(object):
class SkyShellRunner(object): class SkyShellRunner(object):
def _check_for_adb(self):
try:
subprocess.call([ADB_PATH, '--help'])
except OSError:
print "'adb' (from the Android SDK) not in $PATH, can't continue."
return False
return True
def main(self): def main(self):
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
if not self._check_for_adb()
sys.exit(2)
parser = argparse.ArgumentParser(description='Sky Demo Runner') parser = argparse.ArgumentParser(description='Sky Demo Runner')
subparsers = parser.add_subparsers(help='sub-command help') subparsers = parser.add_subparsers(help='sub-command help')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment