diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 494: Fix test so that a startupfiles dir is not needed.

Message ID 20120221102710.30857.84168.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Mattias Backman Feb. 21, 2012, 10:27 a.m. UTC
------------------------------------------------------------
revno: 494
committer: Mattias Backman <mattias.backman@linaro.org>
branch nick: linaro-image-tools
timestamp: Tue 2012-02-21 09:44:42 +0100
message:
  Fix test so that a startupfiles dir is not needed.
modified:
  linaro_image_tools/media_create/tests/test_media_create.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
--- linaro_image_tools/media_create/tests/test_media_create.py	2012-02-21 08:01:08 +0000
+++ linaro_image_tools/media_create/tests/test_media_create.py	2012-02-21 08:44:42 +0000
@@ -1217,6 +1217,8 @@ 
             return classmethod(
                 lambda *args, **kwargs: self.funcs_calls.append(name))
 
+        self.useFixture(MockSomethingFixture(os.path, 'exists',
+                                             lambda file: True))
         fixture = MockCmdRunnerPopenFixture()
         self.useFixture(fixture)
         expected_commands = ['sudo -E cp boot/u-boot.bin ./startupfiles']