Commit Graph

7 Commits

Author SHA1 Message Date
Hung-Te Lin
062947926e cros_utils: refine factory and imaging related scripts
Major changes are:
 - prefix functions in cros_image_common with 'image' to avoid naming conflicts
 - use awk to replace grep+sed+cut
 - use case to handle board name list
 - factory_setup.sh should return error if applying patch failed
 - refine for shell script coding style guide:
   * replace `` with $()
   * quote variables
   * replace "! -z" by "-n"
   * no space between redirection symbol (>) and target name (eg, >>filename)
   * 1> should be simply >
   * no trailing \ for && and ||

BUG=chrome-os-partner:1583
TEST=manually verified:
 ./image_to_usb.sh --factory # calls mod_image_for_test --factory, and works fine
 ./make_factory_package.sh --factory PATH_TO_IMAGE --release PATH_TO_IMAGE ...
  # factory payloads were created successfully

Change-Id: I6bb10bdfb12cbdb14e9816b3ad72dfe4b7b0472f

Review URL: http://codereview.chromium.org/5168001
2010-11-18 14:47:38 +08:00
Tammo Spalink
c75941a05d Move factory UI files to autotest repo.
Review URL: http://codereview.chromium.org/2825014
2010-06-22 16:09:04 +08:00
Tom Wai-Hong Tam
7e12aadbbd Fix missing path of factory files.
Review URL: http://codereview.chromium.org/2562001
2010-06-07 16:11:24 +08:00
Tammo Spalink
f726161e09 This goes together with:
http://codereview.chromium.org/1810006/show

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/1937002
2010-05-27 13:18:56 +08:00
Nick Sanders
7c982f7398 Update factory installer, factory test
* Fix build breaks
* Update to work with EFI bios

Review URL: http://codereview.chromium.org/2132008
2010-05-19 22:17:08 -07:00
Tom Wai-Hong Tam
2acef61815 Change the path of qualified_components to the autotest directory.
So no need of the directory /usr/local/manufacturing/.

Review URL: http://codereview.chromium.org/1816004
2010-05-06 14:14:02 +08:00
Tom Wai-Hong Tam
bf772cffaa Skip dropping caches in each test and between iterations during factory tests.
Dropping caches (writing back all dirty pages to disk and clearing all the caches) is not necessary for factory tests. It can reduce the latency significantly. The scale is about 27s -> 3s, for running 2 empty tests.

Review URL: http://codereview.chromium.org/1780011
2010-04-29 14:57:37 +08:00