[Opensrf-commits] r2188 - trunk/examples (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 1 22:51:44 EST 2011


Author: dbs
Date: 2011-03-01 22:51:42 -0500 (Tue, 01 Mar 2011)
New Revision: 2188

Modified:
   trunk/examples/buildbot.cfg
Log:
Coerce the weird test env for MFHD into working inside buildbot

'use testlib.pm' throws the standard "prove --lib lib -r t" recipe for testing
Perl packages out the window, so we have to override the Perl testing class
and point to the known location of testlib.pm

This may still fail for Evergreen branches prior to rel_2_1, but it's
_something_. Throw me a bone, here, will ya?

Ultimately, the best thing to do is probably to make MFHD tests conform.


Modified: trunk/examples/buildbot.cfg
===================================================================
--- trunk/examples/buildbot.cfg	2011-03-01 23:06:32 UTC (rev 2187)
+++ trunk/examples/buildbot.cfg	2011-03-02 03:51:42 UTC (rev 2188)
@@ -186,8 +186,13 @@
 # compile the code
 eg_factory.addStep(shell.Compile(command=["make"]))
 
+class PerlModuleTestMFHDMadness(shell.PerlModuleTest):
+    'Override PerlModuleTest with nonstandard library location for testlib.pm'
+    command = ['prove', '--lib', 'lib', '-I', 'lib/OpenILS/Utils/MFHD/test', '-r', 't']
+    total = 0
+
 # run the Perl unit tests
-eg_factory.addStep(shell.PerlModuleTest(workdir="build/Open-ILS/src/perlmods"))
+eg_factory.addStep(PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods"))
 
 # report on the Python code
 eg_factory.addStep(python.PyLint(



More information about the opensrf-commits mailing list