From 3ab32087ea0148199fada0a160178954fb42e092 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 12 Jul 2012 18:35:44 +0100 Subject: [PATCH] Updated unit-tests for new 0compile For consistent results, we force the use of 0compile >= 0.30 now. --- compile.py | 4 ++-- tests/testrelease.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compile.py b/compile.py index 182f854..b937b59 100644 --- a/compile.py +++ b/compile.py @@ -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 diff --git a/tests/testrelease.py b/tests/testrelease.py index 974b4dc..5c3683c 100755 --- a/tests/testrelease.py +++ b/tests/testrelease.py @@ -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) -- 2.11.4.GIT