Commit 9fd7ed7a authored by Eric Seidel's avatar Eric Seidel

Fix typo in sky_tool causing crash

This will require me to roll the sky pub package, sigh.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1090713002
parent a7ef4733
...@@ -211,7 +211,7 @@ class StopSky(object): ...@@ -211,7 +211,7 @@ class StopSky(object):
class SkyShellRunner(object): class SkyShellRunner(object):
def _check_for_adb(self): def _check_for_adb(self):
try: try:
subprocess.call([ADB_PATH, '--help']) subprocess.check_output([ADB_PATH, 'devices'])
except OSError: except OSError:
print "'adb' (from the Android SDK) not in $PATH, can't continue." print "'adb' (from the Android SDK) not in $PATH, can't continue."
return False return False
...@@ -220,7 +220,7 @@ class SkyShellRunner(object): ...@@ -220,7 +220,7 @@ class SkyShellRunner(object):
def main(self): def main(self):
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
if not self._check_for_adb() if not self._check_for_adb():
sys.exit(2) sys.exit(2)
parser = argparse.ArgumentParser(description='Sky Demo Runner') parser = argparse.ArgumentParser(description='Sky Demo Runner')
......
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