| OLD | NEW | 
|    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 # DOCUMENTATION: |    7 # DOCUMENTATION: | 
|    8 # |    8 # | 
|    9 # Define below an ordered list if tests for execution on factory |    9 # Define below an ordered list if tests for execution on factory | 
|   10 # assembly lines.  This list can be customized for specific factory |   10 # assembly lines.  This list can be customized for specific factory | 
|   11 # needs, within the limits set by the below comments -- specifically, |   11 # needs, within the limits set by the below comments -- specifically, | 
|   12 # ODMs should not remove any Google required tests. |   12 # ODMs should not remove any Google required tests. | 
|   13 # |   13 # | 
|   14 # This file is loaded via a call to execfile() in the primary factory |   14 # This file is loaded via a call to execfile() in the primary factory | 
|   15 # autotest control file. |   15 # autotest control file. | 
|   16  |   16  | 
|   17  |   17  | 
|   18 # -- CUSTOMIZATION VARIABLES --------------------------------------- |   18 # -- CUSTOMIZATION VARIABLES --------------------------------------- | 
|   19 # You can tune these settings to fit your factory process. |   19 # You can tune these settings to fit your factory process. | 
|   20  |   20  | 
|   21 # Change this to False if you want and allow fast wipe (insecure). |   21 # Change this to False if you want and allow fast wipe (insecure). | 
|   22 _DO_FACTORY_SECURE_WIPE = True |   22 _DO_FACTORY_SECURE_WIPE = True | 
|   23  |   23  | 
|   24 # Change this to the number of reboots you want during run-in. |   24 # Change this to the number of reboots you want during run-in. | 
|   25 _REBOOT_SEQ_ITERATIONS = 2 |   25 _REBOOT_SEQ_ITERATIONS = 2 | 
|   26  |   26  | 
|   27 # Change this to the duration of SAT during run-in (suggested 10+ mins). |   27 # Change this to the duration of SAT during run-in (suggested 10+ mins). | 
|   28 _SAT_DURATION_SECS = 60 |   28 _SAT_DURATION_SECS = 60 | 
|   29  |   29  | 
 |   30 # Change this to match your local log upload site. | 
 |   31 _LOG_UPLOAD_DESTINATION = { | 
 |   32   'method': 'ftp', | 
 |   33   'host': '*',  # change to hostname/IP of destination | 
 |   34   'port': 21,  # change this if you are using different port | 
 |   35   'id': 'anonymous', | 
 |   36   'pw': '*', | 
 |   37 } | 
 |   38  | 
 |   39  | 
|   30 # -- END OF CUSTOMIZATION VARIABLES -------------------------------- |   40 # -- END OF CUSTOMIZATION VARIABLES -------------------------------- | 
|   31  |   41  | 
|   32  |   42  | 
|   33 # TEST ORDERING: Tests in the test_list will be run in the order |   43 # TEST ORDERING: Tests in the test_list will be run in the order | 
|   34 # below, unless the operator interrupts the flow via keyboard |   44 # below, unless the operator interrupts the flow via keyboard | 
|   35 # shortcut.  To cause immediate execution of the run-in tests, for |   45 # shortcut.  To cause immediate execution of the run-in tests, for | 
|   36 # example, reorder runin to occur as the first test in the test_list. |   46 # example, reorder runin to occur as the first test in the test_list. | 
|   37  |   47  | 
|   38 TEST_LIST = [ |   48 TEST_LIST = [ | 
|   39  |   49  | 
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  188         autotest_name='factory_LightSensor', |  198         autotest_name='factory_LightSensor', | 
|  189         dargs={'lux_max':1000, 'lux_min':1}, |  199         dargs={'lux_max':1000, 'lux_min':1}, | 
|  190         kbd_shortcut='i'), |  200         kbd_shortcut='i'), | 
|  191  |  201  | 
|  192     # THIS IS A GOOGLE REQUIRED TEST. |  202     # THIS IS A GOOGLE REQUIRED TEST. | 
|  193     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |  203     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 
|  194     OperatorTest( |  204     OperatorTest( | 
|  195         label_en='devrec', |  205         label_en='devrec', | 
|  196         label_zw='還原模式', |  206         label_zw='還原模式', | 
|  197         autotest_name='factory_DeveloperRecovery', |  207         autotest_name='factory_DeveloperRecovery', | 
 |  208         unique_name='GRT_DevRec', | 
|  198         kbd_shortcut='b', |  209         kbd_shortcut='b', | 
|  199         dargs={'layout':'devrec'}), |  210         dargs={'layout':'devrec'}), | 
|  200  |  211  | 
|  201     # THIS IS A GOOGLE REQUIRED TEST. |  212     # THIS IS A GOOGLE REQUIRED TEST. | 
|  202     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |  213     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 
|  203     AutomatedSequence( |  214     AutomatedSequence( | 
|  204         label_en='final', |  215         label_en='HWID', | 
|  205         label_zw='最後測試', |  216         label_zw='硬體代號', | 
|  206         subtest_tag_prefix='final_stage_1', |  217         subtest_tag_prefix='hwid', | 
|  207         kbd_shortcut='f', |  218         kbd_shortcut='f', | 
|  208         subtest_list=[ |  219         subtest_list=[ | 
|  209  |  220  | 
|  210             AutomatedSubTest( |  221             AutomatedSubTest( | 
|  211                 label_en='write GBB', |  222                 label_en='write GBB', | 
|  212                 label_zw='寫入GBB', |  223                 label_zw='寫入GBB', | 
|  213                 autotest_name='factory_WriteGBB'), |  224                 autotest_name='factory_WriteGBB'), | 
|  214  |  225  | 
|  215             AutomatedRebootSubTest( |  226             AutomatedRebootSubTest( | 
|  216                 label_en='reboot', |  227                 label_en='reboot', | 
|  217                 label_zw='重新開機', |  228                 label_zw='重新開機', | 
|  218                 iterations=1), |  229                 iterations=1), | 
|  219  |  230  | 
|  220             AutomatedSubTest( |  231             AutomatedSubTest( | 
|  221                 label_en='component validation', |  232                 label_en='component validation', | 
|  222                 label_zw='元件驗證', |  233                 label_zw='元件驗證', | 
 |  234                 unique_name='GRT_HWComponents', | 
|  223                 autotest_name='hardware_Components')]), |  235                 autotest_name='hardware_Components')]), | 
|  224  |  236  | 
|  225     # THIS IS A GOOGLE REQUIRED TEST. |  237     # THIS IS A GOOGLE REQUIRED TEST. | 
|  226     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |  238     # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 
|  227     OperatorTest( |  239     AutomatedSequence( | 
|  228         label_en='wipe', |  240         label_en='final', | 
|  229         label_zw='清除', |  241         label_zw='最終步驟', | 
|  230         autotest_name='factory_Wipe', |  242         subtest_tag_prefix='finalize', | 
|  231         kbd_shortcut='x', |  243         kbd_shortcut='x', | 
|  232          # NOTE: factory_Wipe.dargs support following variables for temporary |  244         subtest_list=[ | 
|  233          #       testing. You can add these settings to help internal test, but |  245             AutomatedSubTest( | 
|  234          #       THESE ARE GOOGLE REQUIRED TESTS SO YOU SHOULD NOT DISABLE THEM |  246                 label_en='final verification', | 
|  235          #       IN PRODUCTION RELEASES. |  247                 label_zw='最後驗證', | 
|  236          #       - check_developer_switch: check for developer button switch |  248                 unique_name=factory.FINAL_VERIFICATION_TEST_UNIQUE_NAME, | 
|  237          #       - write_protect: enable and check flash ROM write protection |  249                 autotest_name='factory_Verify', | 
|  238          # TODO(hungte) Although the 'write_protect' should be a Google required |  250                 dargs={ | 
|  239          #       test, we decide to disable it until first official release of |  251                     'check_and_enable_write_protect':False, | 
|  240          #       Chrome OS. Please remove that line for the real release. |  252                 }), | 
|  241         dargs={'secure_wipe':_DO_FACTORY_SECURE_WIPE, |  253             # NOTE: factory_Verify.dargs support following variables for | 
|  242                'write_protect':False, |  254             # temporary testing. You can add these settings to help internal | 
|  243                'msg':('hit TAB+ENTER to write protect FW and ' |  255             # test, but THESE ARE GOOGLE REQUIRED TESTS SO YOU SHOULD NOT | 
|  244                       'wipe test image!...\n' |  256             # DISABLE THEM IN PRODUCTION RELEASES. | 
|  245                       '請按下 TAB+ENTER 啟用寫入保護以及清除' |  257             #  - check_developer_switch: check for developer button switch | 
|  246                       '測試程式資料!...')}), |  258             #  - check_required_tests: check if all required tests are passed | 
 |  259             #  - check_and_enable_write_protect: enable and check flash ROM | 
 |  260             #    write protection | 
 |  261             # TODO(hungte) Although the 'write_protect' should be a Google | 
 |  262             #   required test, we decide to disable it until first official | 
 |  263             #   release of Chrome OS. Please remove that for official release. | 
 |  264             AutomatedSubTest( | 
 |  265                 label_en='upload log reports', | 
 |  266                 label_zw='上傳記錄', | 
 |  267                 autotest_name='factory_UploadLogs', | 
 |  268                 dargs={'destination':_LOG_UPLOAD_DESTINATION}), | 
 |  269             AutomatedSubTest( | 
 |  270                 label_en='wipe', | 
 |  271                 label_zw='清除', | 
 |  272                 autotest_name='factory_Wipe', | 
 |  273                 dargs={'secure_wipe':_DO_FACTORY_SECURE_WIPE})]), | 
|  247  |  274  | 
|  248     InformationScreen( |  275     InformationScreen( | 
|  249         label_en='review', |  276         label_en='review', | 
|  250         label_zw='報告', |  277         label_zw='報告', | 
|  251         autotest_name='factory_Review', |  278         autotest_name='factory_Review', | 
|  252         kbd_shortcut='z'), |  279         kbd_shortcut='z'), | 
|  253 ] |  280 ] | 
| OLD | NEW |