1 #!/usr/bin/env python 2 # 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 5 # found in the LICENSE file. 6 7 """Runs both the Python and Java UIAutomator tests.""" 8 9 import logging 10 import os 11 import sys 12 13 from pylib import cmd_helper 14 15 16 if __name__ == '__main__': 17 args = ['python', 18 os.path.join(os.path.dirname(__file__), 'test_runner.py'), 19 'uiautomator'] + sys.argv[1:] 20 logging.warning('*' * 80) 21 logging.warning('This script is deprecated and will be removed soon.') 22 logging.warning('Use the following instead: %s', ' '.join(args)) 23 logging.warning('*' * 80) 24 sys.exit(cmd_helper.RunCmd(args)) 25