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
ed75d7ed
Commit
ed75d7ed
authored
Jul 27, 2004
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement -C as shortcut for --config-file.
parent
1ff2ddfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
test.py
test.py
+5
-3
No files found.
test.py
View file @
ed75d7ed
...
...
@@ -14,7 +14,7 @@
#
##############################################################################
"""
test.py [-abcdDfgGhLmprtTuv] [modfilter [testfilter]]
test.py [-abc
C
dDfgGhLmprtTuv] [modfilter [testfilter]]
Find and run tests written using the unittest module.
...
...
@@ -49,6 +49,7 @@ named .testinfo, it will not be searched for tests. Really.)
-c
Use pychecker
-C filename
--config-file filename
Configure Zope by loading the specified configuration file (zope.conf).
...
...
@@ -91,6 +92,7 @@ named .testinfo, it will not be searched for tests. Really.)
Search for tests starting in the specified start directory
(useful for testing components being developed outside the main
"src" or "build" trees).
Note: This directory will be prepended to sys.path.
--keepbytecode
Do not delete all stale bytecode before running tests
...
...
@@ -732,7 +734,7 @@ def process_args(argv=None):
import_testing
=
False
try
:
opts
,
args
=
getopt
.
getopt
(
argv
[
1
:],
"a:bcdDfg:G:hLmprtTuv"
,
opts
,
args
=
getopt
.
getopt
(
argv
[
1
:],
"a:bc
C:
dDfg:G:hLmprtTuv"
,
[
"all"
,
"help"
,
"libdir="
,
"times="
,
"keepbytecode"
,
"dir="
,
"config-file="
,
"import-testing"
])
...
...
@@ -802,7 +804,7 @@ def process_args(argv=None):
timesfn
=
v
elif
k
==
'--dir'
:
test_dir
=
v
elif
k
==
'--config-file'
:
elif
k
==
'--config-file'
or
k
==
'-C'
:
config_file
=
v
elif
k
==
'--import-testing'
:
import_testing
=
True
...
...
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