FACTORY-980B: buildbot: skip hwqual if test_mod is not enabled.
hwqual relies on autotest.tar.bz2, which is only available with test_mod.
BUG=none, faster release request
TEST=none, next factory branch build will verify it.
Change-Id: Ib5c9cdae5b321761e195affb1eaa71018fec39c4
Reviewed-on: http://gerrit.chromium.org/gerrit/8180
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/buildbot/cbuildbot_stages.py b/buildbot/cbuildbot_stages.py
index da1e568..ce02abd 100644
--- a/buildbot/cbuildbot_stages.py
+++ b/buildbot/cbuildbot_stages.py
@@ -1074,7 +1074,7 @@
# Upload image.zip to Google Storage.
commands.UploadArchivedFile(archive_path, upload_url, filename, debug)
- if config['chromeos_official']:
+ if config['chromeos_official'] and config['test_mod']:
# Build hwqual image and upload to Google Storage.
version = os.path.basename(os.path.realpath(image_dir))
hwqual_name = 'chromeos-hwqual-%s-%s' % (board, version)
@@ -1193,5 +1193,3 @@
self._build_config['board'],
BuilderStage.push_overlays,
self._options.debug)
-
-