| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Runs all the native unit tests.""" | 7 """Runs all the native unit tests.""" |
| 8 | 8 |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| 11 import sys | 11 import sys |
| 12 | 12 |
| 13 from pylib import cmd_helper | 13 from pylib import cmd_helper |
| 14 | 14 |
| 15 | 15 |
| 16 if __name__ == '__main__': | 16 if __name__ == '__main__': |
| 17 args = ['python', | 17 args = [os.path.join(os.path.dirname(__file__), 'test_runner.py'), |
| 18 os.path.join(os.path.dirname(__file__), 'test_runner.py'), | |
| 19 'gtest'] + sys.argv[1:] | 18 'gtest'] + sys.argv[1:] |
| 20 logging.warning('*' * 80) | 19 logging.warning('*' * 80) |
| 21 logging.warning('This script is deprecated and will be removed soon.') | 20 logging.warning('This script is deprecated and will be removed soon.') |
| 22 logging.warning('Use the following instead: %s', ' '.join(args)) | 21 logging.warning('Use the following instead: %s', ' '.join(args)) |
| 23 logging.warning('*' * 80) | 22 logging.warning('*' * 80) |
| 24 sys.exit(cmd_helper.RunCmd(args)) | 23 sys.exit(1) |
| OLD | NEW |