Updated unit-tests for new 0compile
authorThomas Leonard <talex5@gmail.com>
Thu, 12 Jul 2012 17:35:44 +0000 (12 18:35 +0100)
committerThomas Leonard <talex5@gmail.com>
Thu, 12 Jul 2012 17:35:44 +0000 (12 18:35 +0100)
For consistent results, we force the use of 0compile >= 0.30 now.

compile.py
tests/testrelease.py

index 182f854..b937b59 100644 (file)
@@ -126,8 +126,8 @@ def build_slave(src_feed, archive_file, archive_dir_public_url, target_feed):
                finally:
                        stream.close()
 
-               support.check_call(['0launch', COMPILE, 'build'], cwd = tmpdir)
-               support.check_call(['0launch', COMPILE, 'publish', '--target-feed', target_feed], cwd = tmpdir)
+               support.check_call(['0launch', COMPILE, '--not-before=0.30', 'build'], cwd = tmpdir)
+               support.check_call(['0launch', COMPILE, '--not-before=0.30', 'publish', '--target-feed', target_feed], cwd = tmpdir)
 
                # TODO: run unit-tests
 
index 974b4dc..5c3683c 100755 (executable)
@@ -129,7 +129,7 @@ class TestRelease(unittest.TestCase):
                host_archive = os.path.basename(host_download.url)
                assert host_archive in archives
                support.check_call(['tar', 'xjf', os.path.join('archives', host_archive)])
-               c = subprocess.Popen(['0launch', os.path.join(host_download.extract, '0install', 'helloworld-in-c-1.1.xml')], stdout = subprocess.PIPE)
+               c = subprocess.Popen(['0launch', os.path.join(host_download.extract, '0install', 'feed.xml')], stdout = subprocess.PIPE)
                output, _ = c.communicate()
 
                self.assertEquals("Hello from C! (version 1.1)\n", output)