[Opensrf-commits] r2193 - trunk/examples (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 2 09:24:35 EST 2011
Author: dbs
Date: 2011-03-02 09:24:33 -0500 (Wed, 02 Mar 2011)
New Revision: 2193
Modified:
trunk/examples/buildbot.cfg
Log:
Fix reversed logic in test for Perl tests. Oh the irony.
Modified: trunk/examples/buildbot.cfg
===================================================================
--- trunk/examples/buildbot.cfg 2011-03-02 14:12:16 UTC (rev 2192)
+++ trunk/examples/buildbot.cfg 2011-03-02 14:24:33 UTC (rev 2193)
@@ -187,20 +187,22 @@
# compile the code
eg_factory.addStep(shell.Compile(command=["make"]))
+perldir = 'build/Open-ILS/src/perlmods'
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
def has_perl_unit_tests(step):
- if (os.path.exists(os.path.join('build/Open-ILS/src/perlmods', 'lib/OpenILS/Utils/MFHD/test'))):
- return False
- return True
+ 'If there is a /lib/ sudir in the Perl dir, there are tests'
+ if (os.path.exists(os.path.join(perldir, 'lib'))):
+ return True
+ return False
# run the Perl unit tests
eg_factory.addStep(PerlModuleTestMFHDMadness(
doStepIf=has_perl_unit_tests,
- workdir="build/Open-ILS/src/perlmods")
+ workdir=perldir)
)
# report on the Python code
More information about the opensrf-commits
mailing list