diff mbox

[Branch,~linaro-maintainers/linaro-image-tools/trunk] Rev 282: Fix testsuite breakage with reldir; was running the wrong testsuite. :-/

Message ID 20110201175630.26866.8513.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Loïc Minier Feb. 1, 2011, 5:56 p.m. UTC
------------------------------------------------------------
revno: 282
committer: Loïc Minier <lool@dooz.org>
branch nick: linaro-image-tools
timestamp: Tue 2011-02-01 18:53:44 +0100
message:
  Fix testsuite breakage with reldir; was running the wrong testsuite. :-/
modified:
  linaro_media_create/tests/fixtures.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-maintainers/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-maintainers/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro_media_create/tests/fixtures.py'
--- linaro_media_create/tests/fixtures.py	2011-02-01 16:06:46 +0000
+++ linaro_media_create/tests/fixtures.py	2011-02-01 17:53:44 +0000
@@ -51,7 +51,7 @@ 
 
     def setUp(self):
         # Create gzipped tar archive.
-        os.mkdir(os.path.join(self.basedir, reldir))
+        os.mkdir(os.path.join(self.basedir, self.reldir))
         args = ['tar', '-C', self.basedir, '-czf', self.tarball, self.reldir]
         proc = subprocess.Popen(args)
         proc.wait()
@@ -59,7 +59,7 @@ 
     def tearDown(self):
         if os.path.exists(self.tarball):
             os.remove(self.tarball)
-        dir = os.path.join(self.basedir, subdir)
+        dir = os.path.join(self.basedir, self.reldir)
         if os.path.exists(dir):
             os.rmdir(dir)