1# Copyright 2017 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5"""Monkeypatch autotest and import common. 6 7This is used for testing Autotest monkeypatching. 8""" 9 10from __future__ import absolute_import 11from __future__ import division 12from __future__ import print_function 13 14import sys 15 16import lucifer.autotest 17from lucifer import loglib 18 19 20def main(args): 21 """Main function 22 23 @param args: list of command line args 24 """ 25 del args 26 loglib.configure_logging(name='autotest_monkeypatcher') 27 28 lucifer.autotest.monkeypatch() 29 from autotest_lib import common 30 31 print(common.__file__) 32 return 0 33 34 35if __name__ == '__main__': 36 sys.exit(main(sys.argv[1:])) 37