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

Unified Diff: client/bin/kernel_unittest.py

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch 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 | « client/bin/kernel.py ('k') | client/bin/partition.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/kernel_unittest.py
diff --git a/client/bin/kernel_unittest.py b/client/bin/kernel_unittest.py
index fe40e6a1ab7cb452cefc3b4e05f8e68b99a97dc8..6761c05a3746bda31ca9daf0bc51ebfab08062ec 100755
--- a/client/bin/kernel_unittest.py
+++ b/client/bin/kernel_unittest.py
@@ -18,8 +18,11 @@ class TestAddKernelToBootLoader(unittest.TestCase):
# record
bootloader.remove_kernel.expect_call(tag)
bootloader.add_kernel.expect_call(image, tag, initrd=initrd,
- args=bootloader_args,
- root=bootloader_root)
+ args='_dummy_', root=bootloader_root)
+
+ for a in bootloader_args.split():
+ bootloader.add_args.expect_call(kernel=tag, args=a)
+ bootloader.remove_args.expect_call(kernel=tag, args='_dummy_')
# run and check
kernel._add_kernel_to_bootloader(bootloader, base_args, tag, args,
@@ -475,7 +478,7 @@ class TestKernel(unittest.TestCase):
# record
os.chdir.expect_call(self.build_dir)
self.kernel.set_cross_cc.expect_call()
- self.kernel.clean.expect_call(logged=False)
+ self.kernel.clean.expect_call()
build_string = "/usr/bin/time -o /dev/null make -j 8 vmlinux"
build_string += ' > /dev/null 2>&1'
utils.system.expect_call(build_string)
@@ -509,6 +512,7 @@ class TestKernel(unittest.TestCase):
self.job.config_get.expect_call(
'kernel.mkinitrd_extra_args').and_return(None)
args = ''
+ glob.glob.expect_call('/lib/modules/2.6.24*').and_return(['2.6.24'])
os.path.isfile.expect_call('/usr/sbin/mkinitrd').and_return(True)
cmd = '/usr/sbin/mkinitrd'
utils.system.expect_call('%s %s -o initrd 2.6.24' % (cmd, args))
« no previous file with comments | « client/bin/kernel.py ('k') | client/bin/partition.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698