| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 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 """Runs the Perf Dashboard Python unit test suite.""" | 6 """Runs the Perf Dashboard Python unit test suite.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 from hooks import install | 25 from hooks import install |
| 26 if '--no-install-hooks' in sys.argv: | 26 if '--no-install-hooks' in sys.argv: |
| 27 sys.argv.remove('--no-install-hooks') | 27 sys.argv.remove('--no-install-hooks') |
| 28 else: | 28 else: |
| 29 install.InstallHooks() | 29 install.InstallHooks() |
| 30 | 30 |
| 31 from catapult_build import run_with_typ | 31 from catapult_build import run_with_typ |
| 32 import dashboard | 32 import dashboard |
| 33 return_code = run_with_typ.Run( | 33 return_code = run_with_typ.Run( |
| 34 os.path.join(_DASHBOARD_PATH, 'dashboard'), | 34 os.path.join(_DASHBOARD_PATH, 'dashboard'), |
| 35 path=dashboard.ExtraPythonLibraryPaths()) | 35 path=dashboard.PathsForTesting()) |
| 36 sys.exit(return_code) | 36 sys.exit(return_code) |
| OLD | NEW |