Commit Graph

8 Commits

Author SHA1 Message Date
Chris Sosa
6b6f35ec65 Always pass board to cros_mark_as_stable.
Change-Id: I9a724e4e20b8945fdaa1dc53afdddf2477a5bbab

BUG=
TEST=Ran unit tests.

Review URL: http://codereview.chromium.org/3956007
2010-10-22 16:14:36 -07:00
David James
6be0f08169 Robustify and speed up cros_mark_all_as_stable.
What's new?
 - cros_mark_all_as_stable is now in Python and has unit tests.
 - We now detect and report coding errors that can cause incorrect behavior.
   E.g., if 9999 ebuild or stable ebuild can't be found, we report a hard
   failure so that developers will know about the problem.
 - We now check that git hashes we report actually match up with the
   right repository.
 - Unified diff of changes are now printed to stdout, so that developers
   can see a list of the changes and debug any problems.
 - cros_mark_all_as_stable now takes 2.5 seconds to run.

BUG=chromium-os:7795
TEST=Manually examined diff output from run of cros_mark_all_as_stable
     on full repository.

Change-Id: I762597c9b94e5f8e8171b83c966ad54e21a65c1b

Review URL: http://codereview.chromium.org/3798003
2010-10-21 16:11:00 -07:00
David James
4a71ea31cb Update cros_mark_as_stable.py to also update the private overlay
BUG=chromium-os:7218
TEST=./cros_mark_all_as_stable --tracking_branch=cros/master

Change-Id: I0f7c4e2d2aa4fc6325721901a710bfc33fa39a91

Review URL: http://codereview.chromium.org/3516025
2010-10-14 14:03:18 -07:00
David James
3a4a6bbfb9 Update cros_mark_as_stable_unittest.py to pass again.
cros_mark_as_stable.py was updated on Sep 8, but the unit test was not updated
to match. This patch fixes the unit test.

BUG=chromium-os:7586
TEST=Ran unit test.

Change-Id: I283ef33e172a95efc41b4090dc4f67c9d84dd9a3

Review URL: http://codereview.chromium.org/3682003
2010-10-11 09:59:39 -07:00
Chris Sosa
70e2c9e72a Move RunCommand, and Info/Warning/Die into common pylib
TEST=Ran all commands that used RunCommand or Die with
their associated unittests.

Review URL: http://codereview.chromium.org/3266004
2010-08-30 11:05:50 -07:00
Mandeep Singh Baines
9f8e53b27b cros_mark_as_stable: fix unittests
Code was changed to add a CR. Fix tests to accomodate.

BUG=5258
TEST=Unittests pass again.

Change-Id: Iacdbffb14d14f60a43883db3ee12b99a5eeb9f65

Review URL: http://codereview.chromium.org/3014045
2010-07-30 16:37:45 -07:00
Mandeep Singh Baines
204f44d557 cros_mark_as_stable: fix unittests
BUG=5258
TEST=Unittests now pass.

Change-Id: Ie29a222a2ebe691e251abe21a1b74bd3d48fbfd8

Review URL: http://codereview.chromium.org/3029045
2010-07-30 16:22:18 -07:00
Chris Sosa
bebf3798e5 First cut at stable script
TEST=Tested by using crash-reporter and crash_ids set to "12345"

Review URL: http://codereview.chromium.org/2873016
2010-07-13 15:34:11 -07:00