diff options
author | Gaurav Shah <gauravsh@chromium.org> | 2014-11-07 16:04:29 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-23 02:56:50 +0000 |
commit | b354a6e22586974a04cf7444cae0e1450dee6c21 (patch) | |
tree | 982a172ae877739fe7e05eec1a17da6f7e0ef635 /cbuildbot/stages/artifact_stages_unittest.py | |
parent | 307b6297dccd376948479a783db60740d228c759 (diff) | |
download | chromite-b354a6e22586974a04cf7444cae0e1450dee6c21.tar.gz |
cbuildbot: Generate AUTest tarball as part of the UploadTestArtifacts stage
This way it is tied to test building rather than the test running
configuration.
BUG=chromium:425404
TEST=unit test
TEST=trybot run, verify au control file tarball is uploaded for
storm.
Change-Id: I13182f62a3ba39a542f3642adcedef6fb612c70b
Reviewed-on: https://chromium-review.googlesource.com/234878
Tested-by: Gaurav Shah <gauravsh@chromium.org>
Trybot-Ready: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Gaurav Shah <gauravsh@chromium.org>
Diffstat (limited to 'cbuildbot/stages/artifact_stages_unittest.py')
-rwxr-xr-x | cbuildbot/stages/artifact_stages_unittest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cbuildbot/stages/artifact_stages_unittest.py b/cbuildbot/stages/artifact_stages_unittest.py index a89537240..96d8e99e7 100755 --- a/cbuildbot/stages/artifact_stages_unittest.py +++ b/cbuildbot/stages/artifact_stages_unittest.py @@ -477,6 +477,7 @@ class UploadTestArtifactsStageTest(build_stages_unittest.AllConfigsTestCase): def setUp(self): self._release_tag = None + self.archive_stage = None self.StartPatcher(BuilderRunMock()) osutils.SafeMakedirs(os.path.join(self.build_root, 'chroot', 'tmp')) @@ -552,9 +553,16 @@ class UploadTestArtifactsStageTest(build_stages_unittest.AllConfigsTestCase): side_effect=_SimUpdateStatefulPayload) with parallel_unittest.ParallelMock(): + self._run.GetArchive().SetupArchivePath() + self.archive_stage = artifact_stages.ArchiveStage(self._run, + self._current_board) with self.RunStageWithConfig(mock_configurator=_HookRunCommand) as rc: if self._run.config.upload_hw_test_artifacts: self.assertNotEqual(rc.call_count, 0) + cmd = ['site_utils/autoupdate/full_release_test.py', '--npo', + '--dump', '--archive_url', self.archive_stage.upload_url, + self.archive_stage.release_tag, self._current_board] + self.assertTrue(rc.CommandContains(cmd)) else: self.assertEqual(rc.call_count, 0) |