[jhbuild/wip/tests: 4/4] tests: Copy logic for skipping to end from autotools



commit 91a0524804e09da79d2844e4661bfdd57a860847
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 12 05:31:55 2011 -0400

    tests: Copy logic for skipping to end from autotools

 tests/mock.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/mock.py b/tests/mock.py
index 74b7dd3..7039434 100644
--- a/tests/mock.py
+++ b/tests/mock.py
@@ -138,6 +138,8 @@ class MockModule(jhbuild.modtypes.Package):
 
     def do_checkout(self, buildscript):
         buildscript.set_action(_('Checking out'), self)
+        if self.check_build_policy(buildscript) == self.PHASE_DONE:
+            raise jhbuild.errors.SkipToEnd()
     do_checkout.error_phases = [PHASE_FORCE_CHECKOUT]
 
     def skip_checkout(self, buildscript, last_phase):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]