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
a4964c9d
Commit
a4964c9d
authored
Sep 28, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When installed, test.py lives in $ZOPE_HOME/bin.
parent
a56d221f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
lib/python/Zope/Startup/zopectl.py
lib/python/Zope/Startup/zopectl.py
+9
-13
No files found.
lib/python/Zope/Startup/zopectl.py
View file @
a4964c9d
...
...
@@ -224,11 +224,7 @@ class ZopeCmd(ZDCmd):
def
do_test
(
self
,
arg
):
args
=
filter
(
None
,
arg
.
split
(
' '
))
if
not
args
:
print
"usage: test [args]+"
return
# test.py lives in $ZOPE_HOME!
# test.py lives in $ZOPE_HOME/bin
zope_home
=
os
.
getenv
(
'ZOPE_HOME'
)
if
zope_home
is
None
:
...
...
@@ -239,9 +235,15 @@ class ZopeCmd(ZDCmd):
print
"Can't find test.py -- set ZOPE_HOME before running!"
return
script
=
os
.
path
.
join
(
zope_home
,
'test.py'
)
script
=
os
.
path
.
join
(
zope_home
,
'
bin'
,
'
test.py'
)
assert
os
.
path
.
exists
(
script
)
# If --libdir is not supplied, use $INSTANCE_HOME/Products
# (rather than $INSTANCE_HOME/lib/python)
if
'--libdir'
not
in
args
:
args
.
insert
(
0
,
'Products'
)
args
.
insert
(
0
,
'--libdir'
)
# Supply our config file by default.
if
'--config-file'
not
in
args
and
'-C'
not
in
args
:
args
.
insert
(
0
,
self
.
options
.
configfile
)
...
...
@@ -251,12 +253,6 @@ class ZopeCmd(ZDCmd):
if
'-v'
not
in
args
and
'-q'
not
in
args
:
args
.
insert
(
0
,
'-v'
)
# If --libdir is not supplied, use $INSTANCE_HOME/Products
# (rather than $INSTANCE_HOME/lib/python)
if
'--libdir'
not
in
args
:
args
.
insert
(
0
,
'Products'
)
args
.
insert
(
0
,
'--libdir'
)
args
.
insert
(
0
,
script
)
cmdline
=
' '
.
join
([
self
.
options
.
python
]
+
args
)
...
...
@@ -265,7 +261,7 @@ class ZopeCmd(ZDCmd):
def
help_test
(
self
):
print
"test [args]+ -- run unit / functional tests."
print
" See $ZOPE_HOME/
test.py
for syntax."
print
" See $ZOPE_HOME/
bin/test.py --help
for syntax."
def
main
(
args
=
None
):
...
...
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