Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
0db6367f
Kaydet (Commit)
0db6367f
authored
Ock 02, 2016
tarafından
Attila Tovt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26008 -- Added parallel argument to paired_tests and bisect_tests
üst
98839e90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
runtests.py
tests/runtests.py
+6
-6
No files found.
tests/runtests.py
Dosyayı görüntüle @
0db6367f
...
@@ -270,8 +270,8 @@ def django_tests(verbosity, interactive, failfast, keepdb, reverse,
...
@@ -270,8 +270,8 @@ def django_tests(verbosity, interactive, failfast, keepdb, reverse,
return
failures
return
failures
def
bisect_tests
(
bisection_label
,
options
,
test_labels
):
def
bisect_tests
(
bisection_label
,
options
,
test_labels
,
parallel
):
state
=
setup
(
options
.
verbosity
,
test_labels
)
state
=
setup
(
options
.
verbosity
,
test_labels
,
parallel
)
test_labels
=
test_labels
or
get_installed
()
test_labels
=
test_labels
or
get_installed
()
...
@@ -328,8 +328,8 @@ def bisect_tests(bisection_label, options, test_labels):
...
@@ -328,8 +328,8 @@ def bisect_tests(bisection_label, options, test_labels):
teardown
(
state
)
teardown
(
state
)
def
paired_tests
(
paired_test
,
options
,
test_labels
):
def
paired_tests
(
paired_test
,
options
,
test_labels
,
parallel
):
state
=
setup
(
options
.
verbosity
,
test_labels
)
state
=
setup
(
options
.
verbosity
,
test_labels
,
parallel
)
test_labels
=
test_labels
or
get_installed
()
test_labels
=
test_labels
or
get_installed
()
...
@@ -440,9 +440,9 @@ if __name__ == "__main__":
...
@@ -440,9 +440,9 @@ if __name__ == "__main__":
os
.
environ
[
'DJANGO_SELENIUM_TESTS'
]
=
'1'
os
.
environ
[
'DJANGO_SELENIUM_TESTS'
]
=
'1'
if
options
.
bisect
:
if
options
.
bisect
:
bisect_tests
(
options
.
bisect
,
options
,
options
.
modules
)
bisect_tests
(
options
.
bisect
,
options
,
options
.
modules
,
options
.
parallel
)
elif
options
.
pair
:
elif
options
.
pair
:
paired_tests
(
options
.
pair
,
options
,
options
.
modules
)
paired_tests
(
options
.
pair
,
options
,
options
.
modules
,
options
.
parallel
)
else
:
else
:
failures
=
django_tests
(
options
.
verbosity
,
options
.
interactive
,
failures
=
django_tests
(
options
.
verbosity
,
options
.
interactive
,
options
.
failfast
,
options
.
keepdb
,
options
.
failfast
,
options
.
keepdb
,
...
...
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