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 7 This is used for testing Autotest monkeypatching. 8 """ 9 10 from __future__ import absolute_import 11 from __future__ import division 12 from __future__ import print_function 13 14 import sys 15 16 import lucifer.autotest 17 from lucifer import loglib 18 19 20 def 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 35 if __name__ == '__main__': 36 sys.exit(main(sys.argv[1:])) 37