Commit 7a46ecdd authored by Tres Seaver's avatar Tres Seaver

Made 'zopectl test' work for software homes which do not have an "inplace" build.

It used to require that test.py be in $ZOPE_HOME/bin/;  now it will use
$ZOPE_HOME as a fallback.
parent 4c139617
......@@ -58,6 +58,10 @@ Zope Changes
Other
- Made 'zopectl test' work for software homes which do not have
an "inplace" build (it used to require that test.py be in
$ZOPE_HOME/bin/; now it will use $ZOPE_HOME as a fallback).
- Improved logging of ConflictErrors. All conflict errors are
logged at INFO, with counts of how many occurred and how many
were resolved. Tracebacks for all conflicts are logged a DEBUG
......
......@@ -238,6 +238,8 @@ class ZopeCmd(ZDCmd):
return
script = os.path.join(zope_home, 'bin', 'test.py')
if not os.path.exists(script):
script = os.path.join(zope_home, 'test.py') # no inplace build!
assert os.path.exists(script)
# If --libdir is not supplied, use $INSTANCE_HOME/Products
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment