Rev 50: Be ready to replace pqm regarding no locale selftests. in file:///home/vila/buildbot/bzr/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Aug 13 09:14:37 BST 2009


At file:///home/vila/buildbot/bzr/

------------------------------------------------------------
revno: 50
revision-id: v.ladeuil+lp at free.fr-20090813081437-98syzoce9cd6tzuu
parent: v.ladeuil+lp at free.fr-20090812192250-6609vlsuyqtfvwtj
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: bzr
timestamp: Thu 2009-08-13 10:14:37 +0200
message:
  Be ready to replace pqm regarding no locale selftests.
  
  * master/master.cfg:
  (tests_factory): Add a selftest no locale to mimick pqm.
-------------- next part --------------
=== modified file 'master/master.cfg'
--- a/master/master.cfg	2009-08-12 19:22:50 +0000
+++ b/master/master.cfg	2009-08-13 08:14:37 +0000
@@ -110,6 +110,18 @@
 
     name = 'Non-regression tests'
     haltOnFailure = 1
+
+    def __init__(self, *args, **kwargs):
+        more_env = dict(COLUMNS='132', # To avoid truncating test names
+                        )
+        if 'env' in kwargs:
+            more_env.update(kwargs['env'])
+        kwargs['env'] = more_env
+        shell.ShellCommand.__init__(self, *args, **kwargs)
+
+
+class BzrSelftest(BzrTests):
+
     description = ['running selftest']
     descriptionDone = ['selftest']
     command = ['python',  './bzr', 'selftest',
@@ -119,14 +131,6 @@
                '-v',
                ]
 
-    def __init__(self, *args, **kwargs):
-        more_env = dict(COLUMNS='132', # To avoid truncating test names
-                        )
-        if 'env' in kwargs:
-            more_env.update(kwargs['env'])
-        kwargs['env'] = more_env
-        shell.ShellCommand.__init__(self, *args, **kwargs)
-
 
 bzr_base_URL = "http://bazaar.launchpad.net/"
 
@@ -137,7 +141,16 @@
                timeout=3600, # Keep room for initial checkout when needed
                ))
 tests_factory.addStep(BzrBuildExtensions())
-tests_factory.addStep(BzrTests())
+tests_factory.addStep(BzrSelftest())
+# Until we better control what plugins are taken into account (which mean not
+# only defining a slave specific .bazaar/plugins directory but also being able
+# to ignore the plugins installed system-wide), the best we can do is to run
+# selftest --no-plugins :-/ -- vila 20090813
+tests_factory.addStep(BzrSelftest(
+        description=['running selftest no locale',],
+        descriptionDone=['selftest no locale'],
+        env=dict(LC_TYPE='', LANG='C', LC_ALL=''),
+        ))
 
 # Builders for running the non-regression tests
 
@@ -229,7 +242,6 @@
 # promised to never abuse the system by forcing random builds :)
 c['status'].append(html.WebStatus(http_port=8011,
                                   allowForce=True,
-                                  password='tagada'
                                   ))
 
 # from buildbot.status import mail



More information about the bazaar-commits mailing list