9 Commits

Author SHA1 Message Date
Scott Zawalski
e773e514bf Add in __init__.py files in both chromite and chromite/lib for importing 2010-09-28 09:46:52 -07:00
Tan Gao
e5ba918044 TBR: davidjames
Change-Id: I0b8d4277b142185e69abcd8e8bb2dce6395abc56
2010-09-22 09:34:27 -07:00
David James
a48cb7e19d Prototype cros_build_packages, which builds and extracts build tarballs.
Usage: cros_build_packages [options]

Options:
  -h, --help       show this help message and exit
  --board=BOARD    The board to build packages for.
  --debug          Include debug symbols.
  --nowithdev      Don't build useful developer friendly utilities.
  --nowithtest     Build packages required for testing.
  --nowithfactory  Build factory installer
  --nousepkg       Don't use binary packages.
  --nousetarball   Don't use tarball.
  --nofast         Don't merge packages in parallel.

BUG=chromium-os:6604
TEST=Ran cros_build_packages and ./cros_build_packages --nousetarball

Review URL: http://codereview.chromium.org/3315020

Change-Id: Ida9ed6375c2ce4acde304bd3f2796b4419f1d376
2010-09-16 13:05:06 -07:00
Tan Gao
012bff9e81 Add Python tests for build_image script
Change-Id: I95bb4518bbfa2931407a90180686845fd9e928e5

BUG=chromium-os:6574
TEST=manually run test script and verified all 4 test cases passed

Review URL: http://codereview.chromium.org/3341024
2010-09-10 16:31:26 -07:00
Tan Gao
cf4eb5b38c Issue 6600: RunCommand should return an object with various attributes
Change-Id: I6b9333fcf1325dbe141ad387f52d85781de96819

BUG=chromium-os:6600
TEST=added 8 test cases for RunCommand (up from zero :-) Ran all tests and
verified all passed. No regression either

Review URL: http://codereview.chromium.org/3307022
2010-09-10 14:50:47 -07:00
Anush Elangovan
050c95cab7 Sample chromite spec
Change-Id: I049b31c2fc7369fa58ca43e24c2015e574231d7f

BUG=
TEST=none

Review URL: http://codereview.chromium.org/3369009
2010-09-09 15:45:28 -07:00
David James
2e79fe48ce Add shell parameter to allow running commands directly.
For chromite, we often want to run shell commands directly instead of using the
array syntax currently accepted by RunCommand. This makes it easier to run
piped commands, for example.

BUG=chromium-os:6573
TEST=I'm using it in cros_build.

Change-Id: Ic846e257fec4e423b0253d06641eac232545f6f6

Review URL: http://codereview.chromium.org/3323019
2010-09-09 10:49:11 -07:00
Scott Zawalski
57729c3615 Add ListFiles a function to recursively list files in a directory.
Add unittest for ListFiles to cover common use cases.

BUG=
TEST=

Review URL: http://codereview.chromium.org/3325017
2010-09-08 15:59:23 -07:00
Scott Zawalski
92097e69a6 Copy cros_build_lib.py to chromite/lib for chromite development
TBR=sosa
BUG=
TEST=

Review URL: http://codereview.chromium.org/3329015
2010-09-08 12:47:28 -07:00