Message ID | 20110404223119.1168.9592.launchpad@loganberry.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py' --- linaro_image_tools/media_create/tests/test_media_create.py 2011-04-04 21:23:58 +0000 +++ linaro_image_tools/media_create/tests/test_media_create.py 2011-04-04 22:28:58 +0000 @@ -1127,6 +1127,9 @@ def test_append_to_fstab(self): tempdir = self.useFixture(CreateTempDirFixture()).get_temp_dir() + # we don't really need root (sudo) as we're not writing to a real + # root owned /etc + self.useFixture(MockSomethingFixture(os, 'getuid', lambda: 0)) etc = os.path.join(tempdir, 'etc') os.mkdir(etc) fstab = os.path.join(etc, 'fstab')