Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
04824ce8
Kaydet (Commit)
04824ce8
authored
Mar 10, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add regrtest -w option.
üst
f688cc57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
regrtest.py
Lib/test/regrtest.py
+20
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
04824ce8
...
...
@@ -9,6 +9,7 @@ additional facilities.
Command line options:
-v: verbose -- run tests in verbose mode with output to stdout
-w: verbose2 -- re-run failed tests in verbose mode
-q: quiet -- don't print anything except if a test fails
-g: generate -- write the output file for a test instead of comparing it
-x: exclude -- arguments are tests to *exclude*
...
...
@@ -154,7 +155,7 @@ def usage(code, msg=''):
def
main
(
tests
=
None
,
testdir
=
None
,
verbose
=
0
,
quiet
=
False
,
generate
=
False
,
exclude
=
False
,
single
=
False
,
randomize
=
False
,
fromfile
=
None
,
findleaks
=
False
,
use_resources
=
None
,
trace
=
False
,
coverdir
=
'coverage'
,
runleaks
=
False
,
huntrleaks
=
False
):
runleaks
=
False
,
huntrleaks
=
False
,
verbose2
=
False
):
"""Execute a test suite.
This also parses command-line options and modifies its behavior
...
...
@@ -179,12 +180,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
test_support
.
record_original_stdout
(
sys
.
stdout
)
try
:
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'hvgqxsrf:lu:t:TD:NLR:'
,
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'hvgqxsrf:lu:t:TD:NLR:
w
'
,
[
'help'
,
'verbose'
,
'quiet'
,
'generate'
,
'exclude'
,
'single'
,
'random'
,
'fromfile'
,
'findleaks'
,
'use='
,
'threshold='
,
'trace'
,
'coverdir='
,
'nocoverdir'
,
'runleaks'
,
'huntrleaks='
'huntrleaks='
,
'verbose2'
,
])
except
getopt
.
error
,
msg
:
usage
(
2
,
msg
)
...
...
@@ -197,6 +198,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
usage
(
0
)
elif
o
in
(
'-v'
,
'--verbose'
):
verbose
+=
1
elif
o
in
(
'-w'
,
'--verbose2'
):
verbose2
=
True
elif
o
in
(
'-q'
,
'--quiet'
):
quiet
=
True
;
verbose
=
0
...
...
@@ -398,6 +401,20 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
print
"Ask someone to teach regrtest.py about which tests are"
print
"expected to get skipped on"
,
plat
+
"."
if
verbose2
and
bad
:
print
"Re-running failed tests in verbose mode"
for
test
in
bad
:
try
:
test_support
.
verbose
=
1
ok
=
runtest
(
test
,
generate
,
1
,
quiet
,
testdir
,
huntrleaks
)
except
KeyboardInterrupt
:
# print a newline separate from the ^C
print
break
except
:
raise
if
single
:
alltests
=
findtests
(
testdir
,
stdtests
,
nottests
)
for
i
in
range
(
len
(
alltests
)):
...
...
Misc/NEWS
Dosyayı görüntüle @
04824ce8
...
...
@@ -440,6 +440,8 @@ Extension Modules
Library
-------
- A regrtest option -w was added to re-run failed tests in verbose mode.
- Patch #1446372: quit and exit can now be called from the interactive
interpreter to exit.
...
...
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