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

Unified Diff: bin/cbuildbot_unittest.py

Issue 4442001: Add more error checking to preflight queue. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Fix bug in FindRepoDir 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_config.py ('k') | cros_mark_as_stable.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot_unittest.py
diff --git a/bin/cbuildbot_unittest.py b/bin/cbuildbot_unittest.py
index bbbc56c6f73e9a363f9cf048b20f4064034b0b70..979cda55d40d2a258ce75a1c1f7ccd2706b0fe10 100755
--- a/bin/cbuildbot_unittest.py
+++ b/bin/cbuildbot_unittest.py
@@ -16,6 +16,7 @@ import unittest
# Fixes circular dependency error.
import cbuildbot_comm
import cbuildbot
+from cros_build_lib import ReinterpretPathForChroot
class CBuildBotTest(mox.MoxTestBase):
@@ -42,6 +43,10 @@ class CBuildBotTest(mox.MoxTestBase):
['dev-util/perf', '12345test'],
['chromos-base/libcros', '12345test']
]
+ self._overlays = ['%s/src/third_party/chromiumos-overlay' % self._buildroot]
+ self._chroot_overlays = [
+ ReinterpretPathForChroot(p) for p in self._overlays
+ ]
def testParseRevisionString(self):
"""Test whether _ParseRevisionString parses string correctly."""
@@ -168,13 +173,15 @@ class CBuildBotTest(mox.MoxTestBase):
cbuildbot.RunCommand(['./cros_mark_as_stable', '--all',
'--board=%s' % self._test_board,
- '--tracking_branch="cros/master"', 'commit'],
+ '--overlays=%s' % ':'.join(self._chroot_overlays),
+ '--tracking_branch=cros/master', 'commit'],
cwd='%s/src/scripts' % self._buildroot,
enter_chroot=True)
self.mox.ReplayAll()
cbuildbot._UprevPackages(self._buildroot, self.tracking_branch,
- self._revision_file, self._test_board)
+ self._revision_file, self._test_board,
+ self._overlays)
self.mox.VerifyAll()
def testUprevAllPackages(self):
@@ -189,13 +196,15 @@ class CBuildBotTest(mox.MoxTestBase):
cbuildbot.RunCommand(['./cros_mark_as_stable', '--all',
'--board=%s' % self._test_board,
- '--tracking_branch="cros/master"', 'commit'],
+ '--overlays=%s' % ':'.join(self._chroot_overlays),
+ '--tracking_branch=cros/master', 'commit'],
cwd='%s/src/scripts' % self._buildroot,
enter_chroot=True)
self.mox.ReplayAll()
cbuildbot._UprevPackages(self._buildroot, self.tracking_branch,
- self._revision_file, self._test_board)
+ self._revision_file, self._test_board,
+ self._overlays)
self.mox.VerifyAll()
« no previous file with comments | « bin/cbuildbot_config.py ('k') | cros_mark_as_stable.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698