Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e312bb44
Commit
e312bb44
authored
Feb 20, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the `test` command from zopectl. The test.py script it was relying on does no longer exist.
parent
6c1faa28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
53 deletions
+3
-53
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
src/Zope2/Startup/zopectl.py
src/Zope2/Startup/zopectl.py
+0
-53
No files found.
doc/CHANGES.txt
View file @
e312bb44
...
@@ -23,6 +23,9 @@ Known issues
...
@@ -23,6 +23,9 @@ Known issues
Restructuring
Restructuring
+++++++++++++
+++++++++++++
- Removed the `test` command from zopectl. The test.py script it was relying
on does no longer exist.
- Updated to ZODB 3.9.0a11. ZODB-level version support has been
- Updated to ZODB 3.9.0a11. ZODB-level version support has been
removed and ZopeUndo now is part of Zope2.
removed and ZopeUndo now is part of Zope2.
...
...
src/Zope2/Startup/zopectl.py
View file @
e312bb44
...
@@ -294,59 +294,6 @@ class ZopeCmd(ZDCmd):
...
@@ -294,59 +294,6 @@ class ZopeCmd(ZDCmd):
def
help_adduser
(
self
):
def
help_adduser
(
self
):
print
"adduser <name> <password> -- add a Zope management user"
print
"adduser <name> <password> -- add a Zope management user"
def
do_test
(
self
,
arg
):
args
=
filter
(
None
,
arg
.
split
(
' '
))
# test.py lives in $ZOPE_HOME/bin
zope_home
=
os
.
getenv
(
'ZOPE_HOME'
)
if
zope_home
is
None
:
software_home
=
os
.
getenv
(
'SOFTWARE_HOME'
)
zope_home
=
os
.
path
.
abspath
(
'%s/../..'
%
software_home
)
if
not
os
.
path
.
isdir
(
zope_home
):
print
"Can't find test.py -- set ZOPE_HOME before running!"
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
)
# Supply our config file by default.
if
'--config-file'
not
in
args
and
'-C'
not
in
args
:
args
.
insert
(
0
,
self
.
options
.
configfile
)
args
.
insert
(
0
,
'--config-file'
)
# Default to dots.
if
'-v'
not
in
args
and
'-q'
not
in
args
:
args
.
insert
(
0
,
'-v'
)
args
.
insert
(
0
,
script
)
args
.
insert
(
0
,
self
.
options
.
python
)
print
'Running tests via: %s'
%
' '
.
join
(
args
)
if
WIN
:
# Windows process handling is quite different
os
.
system
(
' '
.
join
(
args
))
else
:
pid
=
os
.
fork
()
if
pid
==
0
:
# child
os
.
execv
(
self
.
options
.
python
,
args
)
# Parent process running (execv replaces process in child
while
True
:
try
:
pid
,
status
=
os
.
waitpid
(
pid
,
0
)
except
(
OSError
,
KeyboardInterrupt
):
continue
else
:
self
.
_exitstatus
=
status
break
def
help_test
(
self
):
print
"test [args]+ -- run unit / functional tests."
print
" See $ZOPE_HOME/bin/test.py --help for syntax."
def
main
(
args
=
None
):
def
main
(
args
=
None
):
# This is exactly like zdctl.main(), but uses ZopeCtlOptions and
# This is exactly like zdctl.main(), but uses ZopeCtlOptions and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment