| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Run self-tests within platform_tools/android/tests dir. """ | 6 """Run self-tests within platform_tools/android/tests dir. """ |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 from build_step import BuildStep | 11 from build_step import BuildStep |
| 12 from utils import shell_utils | 12 from py.utils import shell_utils |
| 13 | 13 |
| 14 | 14 |
| 15 class RunAndroidPlatformSelfTests(BuildStep): | 15 class RunAndroidPlatformSelfTests(BuildStep): |
| 16 def _Run(self): | 16 def _Run(self): |
| 17 shell_utils.run(['python', os.path.join( | 17 shell_utils.run(['python', os.path.join( |
| 18 'platform_tools', 'android', 'tests', 'run_all.py')]) | 18 'platform_tools', 'android', 'tests', 'run_all.py')]) |
| 19 | 19 |
| 20 | 20 |
| 21 if '__main__' == __name__: | 21 if '__main__' == __name__: |
| 22 sys.exit(BuildStep.RunBuildStep(RunAndroidPlatformSelfTests)) | 22 sys.exit(BuildStep.RunBuildStep(RunAndroidPlatformSelfTests)) |
| OLD | NEW |