зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598367 : using py2, py3 compatible maximum integer value through six r=whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D54169 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
de3e9b1cdd
Коммит
f2aa28e1a2
|
@ -29,7 +29,7 @@ from marionette_driver.marionette import Marionette
|
||||||
from moztest.adapters.unit import StructuredTestResult, StructuredTestRunner
|
from moztest.adapters.unit import StructuredTestResult, StructuredTestRunner
|
||||||
from moztest.results import TestResult, TestResultCollection, relevant_line
|
from moztest.results import TestResult, TestResultCollection, relevant_line
|
||||||
|
|
||||||
from six import reraise
|
from six import reraise, MAXSIZE
|
||||||
|
|
||||||
from . import serve
|
from . import serve
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ class BaseMarionetteArguments(ArgumentParser):
|
||||||
help='run tests in a random order')
|
help='run tests in a random order')
|
||||||
self.add_argument('--shuffle-seed',
|
self.add_argument('--shuffle-seed',
|
||||||
type=int,
|
type=int,
|
||||||
default=random.randint(0, sys.maxint),
|
default=random.randint(0, MAXSIZE),
|
||||||
help='Use given seed to shuffle tests')
|
help='Use given seed to shuffle tests')
|
||||||
self.add_argument('--total-chunks',
|
self.add_argument('--total-chunks',
|
||||||
type=int,
|
type=int,
|
||||||
|
@ -524,7 +524,7 @@ class BaseMarionetteTestRunner(object):
|
||||||
run_until_failure=None,
|
run_until_failure=None,
|
||||||
testvars=None,
|
testvars=None,
|
||||||
symbols_path=None,
|
symbols_path=None,
|
||||||
shuffle=False, shuffle_seed=random.randint(0, sys.maxint), this_chunk=1,
|
shuffle=False, shuffle_seed=random.randint(0, MAXSIZE), this_chunk=1,
|
||||||
total_chunks=1,
|
total_chunks=1,
|
||||||
server_root=None, gecko_log=None, result_callbacks=None,
|
server_root=None, gecko_log=None, result_callbacks=None,
|
||||||
prefs=None, test_tags=None,
|
prefs=None, test_tags=None,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче