[zorg] r183171 - Add support to specify an additional svn repository for test-suite-externals for phased LNT builders.

David Dean david_dean at apple.com
Mon Jun 3 16:49:38 PDT 2013


Author: ddean
Date: Mon Jun  3 18:49:38 2013
New Revision: 183171

URL: http://llvm.org/viewvc/llvm-project?rev=183171&view=rev
Log:
Add support to specify an additional svn repository for test-suite-externals for phased LNT builders.

Modified:
    zorg/trunk/zorg/buildbot/builders/LNTBuilder.py

Modified: zorg/trunk/zorg/buildbot/builders/LNTBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/LNTBuilder.py?rev=183171&r1=183170&r2=183171&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/LNTBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/LNTBuilder.py Mon Jun  3 18:49:38 2013
@@ -162,7 +162,7 @@ def AddLNTTestsToFactory(f, nt_flags, cc
 
 def CreateLNTNightlyFactory(nt_flags, cc_path=None, cxx_path=None,
                             parallel = False, jobs = '%(jobs)s',
-                            db_url=None):
+                            db_url=None, external_URL=None):
     # Paramaters used by this method:
     # nt_flags  : a list of flags passed to the lnt process
     # cc_path   : explicit path to c compiler
@@ -241,5 +241,23 @@ def CreateLNTNightlyFactory(nt_flags, cc
                   haltOnFailure=False, flunkOnFailure=False,
                   workdir='test-suite', alwaysUseLatest=True, retry = (60, 5),
                   description='pull.test-suite'))
+    if external_URL:
+        external_dir = WithProperties('%(builddir)s/test-suite-externals')
+        f.addStep(buildbot.steps.shell.ShellCommand(
+                name = 'svn.clean.externals',
+                command = ['svn', 'cleanup'],
+                haltOnFailure=False, flunkOnFailure=False,
+                description = ['svn clean externals'],
+                workdir='test-suite-externals'))
+        f.addStep(SVN(name='pull.test-suite-externals', mode='full',
+                      repourl=external_URL, retry = (60, 5), method='fresh',
+                      workdir='test-suite-externals', alwaysUseLatest=True,
+                      haltOnFailure=False, flunkOnFailure=False,
+                      description='pull.test-suite-externals',
+                      timeout=300))
+        # Buildbot uses got_revision instead of revision to identify builds.
+        # The previous step will set it incorrectly
+        # We set it to the correct value in th following step
+        setProperty(f, 'got_revision', WithProperties('%(revision)s'))
 
     return f





More information about the llvm-commits mailing list