Syntax, baby, syntax (for the buildbot)
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 05:14:58 +0000 (05:14 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 05:14:58 +0000 (05:14 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2190 9efc2488-bf62-4759-914b-345cdb29e865

examples/buildbot.cfg

index 438c898..02355ed 100644 (file)
@@ -192,16 +192,16 @@ class PerlModuleTestMFHDMadness(shell.PerlModuleTest):
     total = 0
 
 def has_perl_unit_tests(step):
-    if (step.build.getProperty('branch') -= 'branches/rel_1_6'):
+    if (step.build.getProperty('branch') == 'branches/rel_1_6'):
         return false
-    elif (step.build.getProperty('branch') -= 'branches/rel_2_0'):
+    elif (step.build.getProperty('branch') == 'branches/rel_2_0'):
         return false
     return true
 
 # run the Perl unit tests
-eg_factory.addStep(
+eg_factory.addStep(PerlModuleTestMFHDMadness(
     doStepIf=has_perl_unit_tests,
-    PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods")
+    workdir="build/Open-ILS/src/perlmods")
 )
 
 # report on the Python code