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

Unified Diff: bin/cbuildbot.py

Issue 6135002: Add simple update test to pfq. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: iRebased Created 9 years, 11 months 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 | bin/cbuildbot_config.py » ('j') | no next file with comments »
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 ff3fb8a94c878e42fecd17bc15e008d472842a98..bb9e0cc23d0e273427b401e1357d1bf473a76aba 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -415,6 +415,22 @@ def _RunSmokeSuite(buildroot, results_dir):
], cwd=cwd, error_ok=False)
+def _RunAUTest(buildroot, board):
+ """Runs a basic update test from the au test harness."""
+ cwd = os.path.join(buildroot, 'src', 'scripts')
+ image_path = os.path.join(buildroot, 'src', 'build', 'images', board,
+ 'latest', 'chromiumos_test_image.bin')
+ RunCommand(['bin/cros_au_test_harness',
+ '--no_graphics',
+ '--no_delta',
+ '--board=%s' % board,
+ '--test_prefix=SimpleTest',
+ '--verbose',
+ '--base_image=%s' % image_path,
+ '--target_image=%s' % image_path,
+ ], cwd=cwd, error_ok=False)
+
+
def _UprevPackages(buildroot, tracking_branch, revisionfile, board, overlays):
"""Uprevs a package based on given revisionfile.
@@ -695,15 +711,16 @@ def main():
_BuildImage(buildroot)
- if buildconfig['smoke_bvt'] and options.tests:
+ if buildconfig['tests'] and options.tests:
_BuildVMImageForTesting(buildroot)
test_results_dir = '/tmp/run_remote_tests.%s' % options.buildnumber
try:
_RunSmokeSuite(buildroot, test_results_dir)
+ _RunAUTest(buildroot, buildconfig['board'])
finally:
if not options.debug:
archive_full_path = os.path.join(options.gsutil_archive,
- str(options.buildnumber))
+ str(options.buildnumber))
_ArchiveTestResults(buildroot, buildconfig['board'],
test_results_dir=test_results_dir,
gsutil=options.gsutil,
« no previous file with comments | « no previous file | bin/cbuildbot_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698