OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 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 semi-automated update testing on a non-rooted device.""" | 7 """Runs semi-automated update testing on a non-rooted device.""" |
8 import logging | 8 import logging |
9 import optparse | 9 import optparse |
10 import os | 10 import os |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 parser.print_help(sys.stderr) | 126 parser.print_help(sys.stderr) |
127 parser.error('Missing --to-apk or --app-data.') | 127 parser.error('Missing --to-apk or --app-data.') |
128 assert os.path.isfile(options.to_apk) | 128 assert os.path.isfile(options.to_apk) |
129 assert os.path.isfile(options.app_data) | 129 assert os.path.isfile(options.app_data) |
130 _VerifyAppUpdate(adb, options.to_apk, options.app_data, | 130 _VerifyAppUpdate(adb, options.to_apk, options.app_data, |
131 from_apk=options.from_apk) | 131 from_apk=options.from_apk) |
132 | 132 |
133 | 133 |
134 if __name__ == '__main__': | 134 if __name__ == '__main__': |
135 main() | 135 main() |
OLD | NEW |