[jhbuild: 25/27] [tests] sync build_targets creation to config.py



commit fa6da20b1fbc652d74ff398ce64e95f035618ec0
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat May 16 15:26:37 2009 +0200

    [tests] sync build_targets creation to config.py
---
 tests/tests.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/tests.py b/tests/tests.py
index f261844..2261b26 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -204,9 +204,10 @@ class BuildTestCase(unittest.TestCase):
         if self.config.makeclean and not 'clean' in self.config.build_targets:
             self.config.build_targets.insert(0, 'clean')
         if self.config.nobuild:
-            self.config.build_targets.remove('install')
-            if len(self.config.build_targets) == 0:
-                self.config.build_targets = ['checkout']
+            for phase in ('configure', 'build', 'check', 'clean', 'install'):
+                if phase in self.config.build_targets:
+                    self.config.build_targets.remove(phase)
+            self.config.build_targets.append('checkout')
         if self.config.makedist and not 'dist' in self.config.build_targets:
             self.config.build_targets.append('dist')
         if self.config.makedistcheck and not 'distcheck' in self.config.build_targets:



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