aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create/tests/test_media_create.py
diff options
context:
space:
mode:
authorJames Tunnicliffe <james.tunnicliffe@linaro.org>2012-07-25 11:56:58 +0100
committerJames Tunnicliffe <james.tunnicliffe@linaro.org>2012-07-25 11:56:58 +0100
commit69012f93cce99ecb11d0a7b7e6d0be7259786572 (patch)
tree68a4399602804279709b9623c25d9ed262141ef4 /linaro_image_tools/media_create/tests/test_media_create.py
parent14ced21e75fcf556b4c926add1e9e98d8c9ff107 (diff)
renamed u_boot_in_boot_part to bootloader_file_in_boot_part.
Diffstat (limited to 'linaro_image_tools/media_create/tests/test_media_create.py')
-rw-r--r--linaro_image_tools/media_create/tests/test_media_create.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/linaro_image_tools/media_create/tests/test_media_create.py b/linaro_image_tools/media_create/tests/test_media_create.py
index cce7a06..b27f6b4 100644
--- a/linaro_image_tools/media_create/tests/test_media_create.py
+++ b/linaro_image_tools/media_create/tests/test_media_create.py
@@ -2880,10 +2880,10 @@ class TestPopulateBoot(TestCaseWithFixtures):
self.expected_calls, self.popen_fixture.mock.commands_executed)
self.assertEquals(self.expected_args, self.saved_args)
- def test_populate_boot_uboot_in_boot_part(self):
+ def test_populate_boot_bootloader_file_in_boot_part(self):
self.prepare_config(boards.BoardConfig)
self.config.uboot_flavor = "uboot_flavor"
- self.config.uboot_in_boot_part = True
+ self.config.bootloader_file_in_boot_part = True
self.call_populate_boot(self.config)
expected_calls = self.expected_calls[:]
expected_calls.insert(2,
@@ -2893,9 +2893,22 @@ class TestPopulateBoot(TestCaseWithFixtures):
expected_calls, self.popen_fixture.mock.commands_executed)
self.assertEquals(self.expected_args, self.saved_args)
+ def test_populate_boot_bootloader_file_in_boot_part_false(self):
+ self.prepare_config(boards.BoardConfig)
+ self.config.uboot_flavor = "uboot_flavor"
+ self.config.bootloader_file_in_boot_part = False
+ self.call_populate_boot(self.config)
+ expected_calls = self.expected_calls[:]
+ #expected_calls.insert(2,
+ # '%s cp -v chroot_dir/usr/lib/u-boot/uboot_flavor/u-boot.bin '
+ # 'boot_disk' % sudo_args)
+ self.assertEquals(
+ expected_calls, self.popen_fixture.mock.commands_executed)
+ self.assertEquals(self.expected_args, self.saved_args)
+
def test_populate_boot_no_uboot_flavor(self):
self.prepare_config(boards.BoardConfig)
- self.config.uboot_in_boot_part = True
+ self.config.bootloader_file_in_boot_part = True
self.assertRaises(
AssertionError, self.call_populate_boot, self.config)