"make test" fails in a release tarball

Bug #143587 reported by Paul Winkler
2
Affects Status Importance Assigned to Milestone
Zope 2
Won't Fix
Medium
Unassigned

Bug Description

With a 2.9.0-b1 release tarball, the "test" target of makefile fails due to importing an old, removed testing package. The below patch is a partial fix to use the new testrunner, but it's still broken -- it gives lots of test errors that I don't understand and don't have time to investigate further.

Index: releases/Zope2/test.py
===================================================================
--- releases/Zope2/test.py (revision 40735)
+++ releases/Zope2/test.py (working copy)
@@ -1,3 +1,4 @@
+
 #!/usr/bin/env python2.4
 ##############################################################################
 #
@@ -29,8 +30,9 @@
 lib = os.path.join(here, "build", "lib." + PLAT_SPEC)
 sys.path.append(lib)

-import zope.app.testing.test
+from zope.testing import testrunner

 if __name__ == '__main__':
- args = sys.argv[:1] + ["-ul", lib] + sys.argv[1:]
- zope.app.testing.test.process_args(args)
+ args = ["-u", "--test-path", lib] + sys.argv[1:]
+ testrunner.run(args)
+

Tags: bug zope
Revision history for this message
Patrick Gerken (do3cc) wrote :

The same is still true for the the final release. But I am not sure if the tests need to be runable for release packages.
I got them running by exporting the ZOPE_HOME which should point to the installed zope, and than adding $ZOPE_HOME/lib/python to the items on the PYTHON_PATH.
I also had to install the python package for the profiler.
For me this is acceptable work if I really want to make a testrun with the release package

Revision history for this message
Hanno Schlichting (hannosch) wrote :

Current Zope doesn't support a CMMI build system anymore, so there's no "make test".

Changed in zope2:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.