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

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

Issue 6736025: autotest/factory: improve message feedback on UI (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 9 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 # 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 glob, os 5 import glob, os
6 6
7 from autotest_lib.client.bin import factory, test, utils 7 from autotest_lib.client.bin import factory, test, utils
8 from autotest_lib.client.common_lib import error 8 from autotest_lib.client.common_lib import error
9 from autotest_lib.client.cros import gooftools 9 from autotest_lib.client.cros import gooftools
10 10
11 11
12 class factory_WriteGBB(test.test): 12 class factory_WriteGBB(test.test):
13 """ Updates system firmware GBB data with probed HWID information. """ 13 """ Updates system firmware GBB data with probed HWID information. """
14 version = 4 14 version = 4
15 15
16 def run_once(self): 16 def run_once(self):
17 # If found the HwQual ID in shared_data, identify the component files. 17 # We trust previous execution result of HWQual ID probing test: by
18 probed_hwid = factory.get_shared_data('last_probed_hwid') 18 # hardware_Components(do_probe=True).
19 # If the value was incorrect, it will be detected in the finalization
20 # stage (factory_Finalize, gooftool --finalize => --verify_hwid).
21 probed_hwid = factory.get_shared_data(factory.LAST_PROBED_HWID_NAME)
19 if not probed_hwid: 22 if not probed_hwid:
20 raise error.TestError( 23 raise error.TestError(
21 'You need to run this test from factory UI, and have ' + 24 'You need to run this test from factory UI, and have ' +
22 'successfully completed the HWQual-ID matching test ') 25 'successfully completed the HWQual-ID matching test ')
23 gooftools.run('gooftool --write_gbb="%s" --verbose' % probed_hwid) 26 gooftools.run('gooftool --write_gbb="%s" --verbose' % probed_hwid)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698