зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1863186
- Add dedicate command line option for awsy Base Memory Usage tests. r=perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D192798
This commit is contained in:
Родитель
d523a6de1b
Коммит
e968934551
|
@ -37,7 +37,11 @@ def run_awsy(command_context, tests, binary=None, **kwargs):
|
|||
|
||||
awsy_source_dir = os.path.join(command_context.topsrcdir, "testing", "awsy")
|
||||
if not tests:
|
||||
tests = [os.path.join(awsy_source_dir, "awsy", "test_memory_usage.py")]
|
||||
if kwargs["base"]:
|
||||
filename = "test_base_memory_usage.py"
|
||||
else:
|
||||
filename = "test_memory_usage.py"
|
||||
tests = [os.path.join(awsy_source_dir, "awsy", filename)]
|
||||
|
||||
args = argparse.Namespace(tests=tests)
|
||||
|
||||
|
@ -282,6 +286,14 @@ def run_awsy(command_context, tests, binary=None, **kwargs):
|
|||
default=False,
|
||||
help="Use the tp6 pageset during testing.",
|
||||
)
|
||||
@CommandArgument(
|
||||
"--base",
|
||||
group="AWSY",
|
||||
action="store_true",
|
||||
dest="base",
|
||||
default=False,
|
||||
help="Run base memory usage tests.",
|
||||
)
|
||||
def run_awsy_test(command_context, tests, **kwargs):
|
||||
"""mach awsy-test runs the in-tree version of the Are We Slim Yet
|
||||
(AWSY) tests.
|
||||
|
|
|
@ -43,7 +43,7 @@ Base Memory Usage tests
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
./mach awsy-test testing/awsy/awsy/test_base_memory_usage.py
|
||||
./mach awsy-test --base
|
||||
|
||||
Running AWSY on Try
|
||||
********************
|
||||
|
|
|
@ -179,7 +179,7 @@ Base Memory Usage tests
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
./mach awsy-test testing/awsy/awsy/test_base_memory_usage.py
|
||||
./mach awsy-test --base
|
||||
|
||||
Running AWSY on Try
|
||||
********************
|
||||
|
|
Загрузка…
Ссылка в новой задаче