Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py

Issue 3438007: Replace newline characters in factory tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Address review comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS 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 import os 7 import os
8 8
9 from autotest_lib.client.bin import test, utils 9 from autotest_lib.client.bin import test, utils
10 from autotest_lib.client.common_lib import error 10 from autotest_lib.client.bin import factory_error as error
11 from autotest_lib.client.common_lib import flashrom_util 11 from autotest_lib.client.common_lib import flashrom_util
12 12
13 13
14 class factory_EnableWriteProtect(test.test): 14 class factory_EnableWriteProtect(test.test):
15 """ 15 """
16 Factory test for enable EEPROM Write Protection 16 Factory test for enable EEPROM Write Protection
17 17
18 WARNING: THE RO SECTIONS OF YOUR FLASHROM WILL BECOME READONLY 18 WARNING: THE RO SECTIONS OF YOUR FLASHROM WILL BECOME READONLY
19 AFTER RUNNING THIS TEST. 19 AFTER RUNNING THIS TEST.
20 NOTE: This test only enables write protection. If you want to check 20 NOTE: This test only enables write protection. If you want to check
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 # restore default selection. 86 # restore default selection.
87 if not self.flashrom.select_target(system_default_selection): 87 if not self.flashrom.select_target(system_default_selection):
88 raise error.TestError( 88 raise error.TestError(
89 'ERROR: cannot restore target.\n' \ 89 'ERROR: cannot restore target.\n' \
90 '錯誤: 無法還原快閃記憶體目標') 90 '錯誤: 無法還原快閃記憶體目標')
91 print " - Complete." 91 print " - Complete."
92 92
93 93
94 if __name__ == "__main__": 94 if __name__ == "__main__":
95 print "please run this program with autotest." 95 print "please run this program with autotest."
OLDNEW
« no previous file with comments | « client/site_tests/factory_Dummy/factory_Dummy.py ('k') | client/site_tests/factory_ExtDisplay/factory_ExtDisplay.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698