From 03322efe87039bf78a1864fcb591778271a5fede Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 4 May 2009 09:37:09 +0100 Subject: [PATCH] Remember whether we already ran the unit-tests --- release.py | 7 ++++++- support.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/release.py b/release.py index d05f6ef..2aa0fe9 100644 --- a/release.py +++ b/release.py @@ -443,7 +443,12 @@ def do_release(local_iface, options): main = None try: - run_unit_tests(extracted_iface_path, extracted_impl) + if status.src_tests_passed: + print "Unit-tests already passed - not running again" + else: + run_unit_tests(extracted_iface_path, extracted_impl) + status.src_tests_passed = True + status.save() except SafeException: print "(leaving extracted directory for examination)" fail_candidate(archive_file) diff --git a/support.py b/support.py index aacaec6..0a86a20 100644 --- a/support.py +++ b/support.py @@ -101,7 +101,7 @@ def show_diff(from_dir, to_dir): class Status(object): __slots__ = ['old_snapshot_version', 'release_version', 'head_before_release', 'new_snapshot_version', - 'head_at_release', 'created_archive', 'tagged', 'verified_uploads', 'updated_master_feed'] + 'head_at_release', 'created_archive', 'src_tests_passed', 'tagged', 'verified_uploads', 'updated_master_feed'] def __init__(self): for name in self.__slots__: setattr(self, name, None) -- 2.11.4.GIT