Rev 4642: Resolve test aliases at the outermost level that test skip filtering is done. in http://bazaar.launchpad.net/~lifeless/bzr/test-start-with

Robert Collins robertc at robertcollins.net
Mon Aug 24 21:30:21 BST 2009


At http://bazaar.launchpad.net/~lifeless/bzr/test-start-with

------------------------------------------------------------
revno: 4642
revision-id: robertc at robertcollins.net-20090824203018-hwciwsm3dc3c1jeu
parent: pqm at pqm.ubuntu.com-20090824182846-ac4l3skw47g0tzx0
committer: Robert Collins <robertc at robertcollins.net>
branch nick: test-start-with
timestamp: Tue 2009-08-25 06:30:18 +1000
message:
  Resolve test aliases at the outermost level that test skip filtering is done.
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2009-08-24 05:23:11 +0000
+++ b/bzrlib/tests/__init__.py	2009-08-24 20:30:18 +0000
@@ -3230,6 +3230,9 @@
             keep_only = None
         else:
             keep_only = load_test_id_list(load_list)
+        if starting_with:
+            starting_with = [test_prefix_alias_registry.resolve_alias(start)
+                             for start in starting_with]
         if test_suite_factory is None:
             # Reduce loading time by loading modules based on the starting_with
             # patterns.
@@ -3608,8 +3611,6 @@
     if keep_only is not None:
         id_filter = TestIdList(keep_only)
     if starting_with:
-        starting_with = [test_prefix_alias_registry.resolve_alias(start)
-                         for start in starting_with]
         # We take precedence over keep_only because *at loading time* using
         # both options means we will load less tests for the same final result.
         def interesting_module(name):




More information about the bazaar-commits mailing list