Update cros_mark_as_stable_unittest.py to pass again.

cros_mark_as_stable.py was updated on Sep 8, but the unit test was not updated
to match. This patch fixes the unit test.

BUG=chromium-os:7586
TEST=Ran unit test.

Change-Id: I283ef33e172a95efc41b4090dc4f67c9d84dd9a3

Review URL: http://codereview.chromium.org/3682003
This commit is contained in:
David James 2010-10-11 09:59:39 -07:00
parent 020aa69f37
commit 3a4a6bbfb9

View File

@ -116,9 +116,10 @@ class EBuildTest(mox.MoxTestBase):
def testFindEBuildPath(self):
self.mox.StubOutWithMock(cros_mark_as_stable, '_SimpleRunCommand')
cros_mark_as_stable._SimpleRunCommand(
'equery-x86-generic which %s 2> /dev/null' % self.package).AndReturn(
self.ebuild_path)
cmd = ('ACCEPT_KEYWORDS="x86 arm amd64" '
'equery-x86-generic which %s 2> /dev/null')
cros_mark_as_stable._SimpleRunCommand(cmd % self.package).AndReturn(
self.ebuild_path)
self.mox.ReplayAll()
path = cros_mark_as_stable._EBuild._FindEBuildPath(self.package)
self.mox.VerifyAll()