Avoid running Perl unit tests when our branches have them not
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 05:10:21 +0000 (05:10 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 05:10:21 +0000 (05:10 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2189 9efc2488-bf62-4759-914b-345cdb29e865

examples/buildbot.cfg

index 24e4a10..438c898 100644 (file)
@@ -191,8 +191,18 @@ class PerlModuleTestMFHDMadness(shell.PerlModuleTest):
     command = ['prove', '--lib', 'lib', '-I', 'lib/OpenILS/Utils/MFHD/test', '-r', 't']
     total = 0
 
+def has_perl_unit_tests(step):
+    if (step.build.getProperty('branch') -= 'branches/rel_1_6'):
+        return false
+    elif (step.build.getProperty('branch') -= 'branches/rel_2_0'):
+        return false
+    return true
+
 # run the Perl unit tests
-eg_factory.addStep(PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods"))
+eg_factory.addStep(
+    doStepIf=has_perl_unit_tests,
+    PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods")
+)
 
 # report on the Python code
 eg_factory.addStep(python.PyLint(