OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import hashlib | 5 import hashlib |
6 import os | 6 import os |
7 import re | 7 import re |
8 import time | 8 import time |
9 | 9 |
10 from autotest_lib.client.bin import factory | 10 from autotest_lib.client.bin import factory |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 '--finalize', | 108 '--finalize', |
109 '--verbose', | 109 '--verbose', |
110 '--db_path "%s"' % db_path, | 110 '--db_path "%s"' % db_path, |
111 '--upload_method "%s"' % upload_method, | 111 '--upload_method "%s"' % upload_method, |
112 ] | 112 ] |
113 if not check_and_enable_write_protect: | 113 if not check_and_enable_write_protect: |
114 self.alert_bypassed('WRITE PROTECTION') | 114 self.alert_bypassed('WRITE PROTECTION') |
115 args.append('--debug_dryrun_wpfw') | 115 args.append('--debug_dryrun_wpfw') |
116 | 116 |
117 cmd = ' '.join(args) | 117 cmd = ' '.join(args) |
118 factory.log('factory_Finalize: Command = ' + cmd) | |
119 gooftools.run(cmd) | 118 gooftools.run(cmd) |
120 | 119 |
121 # TODO(hungte) use Reboot in test list to replace this? | 120 # TODO(hungte) use Reboot in test list to replace this? |
122 os.system("sync; sync; sync; shutdown -r now") | 121 os.system("sync; sync; sync; shutdown -r now") |
OLD | NEW |