"make test" fails in a release tarball
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/
=======
--- releases/
+++ releases/
@@ -1,3 +1,4 @@
+
#!/usr/bin/env python2.4
######
#
@@ -29,8 +30,9 @@
lib = os.path.join(here, "build", "lib." + PLAT_SPEC)
sys.path.
-import zope.app.
+from zope.testing import testrunner
if __name__ == '__main__':
- args = sys.argv[:1] + ["-ul", lib] + sys.argv[1:]
- zope.app.
+ args = ["-u", "--test-path", lib] + sys.argv[1:]
+ testrunner.
+
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. lib/python to the items on the PYTHON_PATH.
I got them running by exporting the ZOPE_HOME which should point to the installed zope, and than adding $ZOPE_HOME/
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