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

Unified Diff: bin/cbuildbot.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 | « no previous file | cros_mark_as_stable.py » ('j') | cros_run_unit_tests » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index e723cd64396b9d2156b12bf04375d01429e2cd89..aef3ec27191741e024e46526260462a37a643248 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -22,6 +22,7 @@ from cros_build_lib import (Die, Info, ReinterpretPathForChroot, RunCommand,
Warning)
_DEFAULT_RETRIES = 3
+_PACKAGE_FILE = '%(buildroot)s/src/scripts/cbuildbot_package.list'
ARCHIVE_BASE = '/var/www/archive'
ARCHIVE_COUNT = 10
@@ -202,6 +203,8 @@ def _UprevFromRevisionList(buildroot, tracking_branch, revision_list, board,
'--tracking_branch=%s' % tracking_branch,
'--overlays=%s' % ':'.join(chroot_overlays),
'--packages=%s' % ':'.join(packages),
+ '--drop_file=%s' % ReinterpretPathForChroot(_PACKAGE_FILE %
+ {'buildroot': buildroot}),
'commit'],
cwd=cwd, enter_chroot=True)
@@ -213,7 +216,10 @@ def _UprevAllPackages(buildroot, tracking_branch, board, overlays):
RunCommand(['./cros_mark_as_stable', '--all',
'--board=%s' % board,
'--overlays=%s' % ':'.join(chroot_overlays),
- '--tracking_branch=%s' % tracking_branch, 'commit'],
+ '--tracking_branch=%s' % tracking_branch,
+ '--drop_file=%s' % ReinterpretPathForChroot(_PACKAGE_FILE %
+ {'buildroot': buildroot}),
+ 'commit'],
cwd=cwd, enter_chroot=True)
@@ -333,7 +339,10 @@ def _BuildVMImageForTesting(buildroot):
def _RunUnitTests(buildroot):
cwd = os.path.join(buildroot, 'src', 'scripts')
- RunCommand(['./cros_run_unit_tests'], cwd=cwd, enter_chroot=True)
+ RunCommand(['./cros_run_unit_tests',
+ '--package_file=%s' % ReinterpretPathForChroot(_PACKAGE_FILE %
+ {'buildroot': buildroot}),
+ ], cwd=cwd, enter_chroot=True)
def _RunSmokeSuite(buildroot, results_dir):
« no previous file with comments | « no previous file | cros_mark_as_stable.py » ('j') | cros_run_unit_tests » ('J')

Powered by Google App Engine
This is Rietveld 408576698