From 204f44d55754fe9ebe19be28cceac58c9fe75fc2 Mon Sep 17 00:00:00 2001 From: Mandeep Singh Baines Date: Fri, 30 Jul 2010 16:22:18 -0700 Subject: [PATCH] cros_mark_as_stable: fix unittests BUG=5258 TEST=Unittests now pass. Change-Id: Ie29a222a2ebe691e251abe21a1b74bd3d48fbfd8 Review URL: http://codereview.chromium.org/3029045 --- cros_mark_as_stable_unittest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cros_mark_as_stable_unittest.py b/cros_mark_as_stable_unittest.py index ade4c655d5..8659910bcc 100755 --- a/cros_mark_as_stable_unittest.py +++ b/cros_mark_as_stable_unittest.py @@ -160,8 +160,8 @@ class EBuildStableMarkerTest(mox.MoxTestBase): # Prepare mock fileinput. This tests to make sure both the commit id # and keywords are changed correctly. - mock_file = ['EAPI=2', 'EGIT_COMMIT=old_id', 'KEYWORDS=\"~x86 ~arm\"', - 'src_unpack(){}'] + mock_file = ['EAPI=2', 'CROS_WORKON_COMMIT=old_id', + 'KEYWORDS=\"~x86 ~arm\"', 'src_unpack(){}'] cros_mark_as_stable.shutil.copyfile( self.m_ebuild.ebuild_path_no_version + '-9999.ebuild', @@ -169,7 +169,7 @@ class EBuildStableMarkerTest(mox.MoxTestBase): cros_mark_as_stable.fileinput.input(self.revved_ebuild_path, inplace=1).AndReturn(mock_file) m_file.write('EAPI=2') - m_file.write('EGIT_COMMIT="my_id"') + m_file.write('CROS_WORKON_COMMIT="my_id"') m_file.write('KEYWORDS="x86 arm"') m_file.write('src_unpack(){}') cros_mark_as_stable._RunCommand('git add ' + self.revved_ebuild_path)