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
38df97a0
Unverified
Kaydet (Commit)
38df97a0
authored
Kas 17, 2018
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Kas 17, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add --tempdir option for test run (GH-10322)
üst
5a087d54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
windows-steps.yml
.azure-pipelines/windows-steps.yml
+1
-1
cmdline.py
Lib/test/libregrtest/cmdline.py
+3
-3
main.py
Lib/test/libregrtest/main.py
+5
-7
No files found.
.azure-pipelines/windows-steps.yml
Dosyayı görüntüle @
38df97a0
...
...
@@ -17,7 +17,7 @@ steps:
-
script
:
python.bat -m test.pythoninfo
displayName
:
'
Display
build
info'
-
script
:
PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml"
-
script
:
PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0 --junit-xml="$(Build.BinariesDirectory)\test-results.xml"
--tempdir="$(Build.BinariesDirectory)\test"
displayName
:
'
Tests'
env
:
PREFIX
:
$(Py_OutDir)\$(arch)
...
...
Lib/test/libregrtest/cmdline.py
Dosyayı görüntüle @
38df97a0
...
...
@@ -271,7 +271,8 @@ def _create_parser():
group
.
add_argument
(
'--junit-xml'
,
dest
=
'xmlpath'
,
metavar
=
'FILENAME'
,
help
=
'writes JUnit-style XML results to the specified '
'file'
)
group
.
add_argument
(
'--tempdir'
,
dest
=
'tempdir'
,
metavar
=
'PATH'
,
help
=
'override the working directory for the test run'
)
return
parser
...
...
@@ -383,8 +384,7 @@ def _parse_args(args, **kwargs):
if
ns
.
match_filename
:
if
ns
.
match_tests
is
None
:
ns
.
match_tests
=
[]
filename
=
os
.
path
.
join
(
support
.
SAVEDCWD
,
ns
.
match_filename
)
with
open
(
filename
)
as
fp
:
with
open
(
ns
.
match_filename
)
as
fp
:
for
line
in
fp
:
ns
.
match_tests
.
append
(
line
.
strip
())
...
...
Lib/test/libregrtest/main.py
Dosyayı görüntüle @
38df97a0
...
...
@@ -550,12 +550,12 @@ class Regrtest:
def
main
(
self
,
tests
=
None
,
**
kwargs
):
global
TEMPDIR
self
.
ns
=
self
.
parse_args
(
kwargs
)
if
sysconfig
.
is_python_build
():
try
:
os
.
mkdir
(
TEMPDIR
)
except
FileExistsError
:
pass
if
self
.
ns
.
tempdir
:
TEMPDIR
=
self
.
ns
.
tempdir
os
.
makedirs
(
TEMPDIR
,
exist_ok
=
True
)
# Define a writable temp dir that will be used as cwd while running
# the tests. The name of the dir includes the pid to allow parallel
...
...
@@ -571,8 +571,6 @@ class Regrtest:
self
.
_main
(
tests
,
kwargs
)
def
_main
(
self
,
tests
,
kwargs
):
self
.
ns
=
self
.
parse_args
(
kwargs
)
if
self
.
ns
.
huntrleaks
:
warmup
,
repetitions
,
_
=
self
.
ns
.
huntrleaks
if
warmup
<
1
or
repetitions
<
1
:
...
...
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