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

Unified Diff: cros_mark_as_stable.py

Issue 5124006: Add ability for cbuildbot to only run unit tests for revved packages. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/cbuildbot.py ('k') | cros_run_unit_tests » ('j') | cros_run_unit_tests » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_mark_as_stable.py
diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py
index 6c4a6fa51a7cb0448ace4a91ec795d028d825a31..a6221ad80fc74ddc8d50522bee3384651eafe6fd 100755
--- a/cros_mark_as_stable.py
+++ b/cros_mark_as_stable.py
@@ -22,6 +22,8 @@ gflags.DEFINE_boolean('all', False,
'Mark all packages as stable.')
gflags.DEFINE_string('board', '',
'Board for which the package belongs.', short_name='b')
+gflags.DEFINE_string('drop_file', None,
+ 'File to list packages that were revved.')
gflags.DEFINE_boolean('dryrun', False,
'Passes dry-run to git push if pushing a change.')
gflags.DEFINE_string('overlays', '',
@@ -569,6 +571,10 @@ def main(argv):
if revved_packages:
_CleanStalePackages(gflags.FLAGS.board, revved_packages)
+ if gflags.FLAGS.drop_file:
+ fh = open(gflags.FLAGS.drop_file, 'w')
+ fh.write(' '.join(revved_packages))
+ fh.close()
else:
work_branch.Delete()
« no previous file with comments | « bin/cbuildbot.py ('k') | cros_run_unit_tests » ('j') | cros_run_unit_tests » ('J')

Powered by Google App Engine
This is Rietveld 408576698