Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: components/test/data/password_manager/automated_tests/run_tests.py

Issue 1084553003: [Password manager tests automation] Adds an ability to specify test_case which should be run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@save_only_errors
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/test/data/password_manager/automated_tests/run_tests.py
diff --git a/components/test/data/password_manager/automated_tests/run_tests.py b/components/test/data/password_manager/automated_tests/run_tests.py
index 5dd44227663f75ac843256c55a0edae2f3f4e007..00d376c4778a4f2c59c578e4a99ba580572c2f5b 100644
--- a/components/test/data/password_manager/automated_tests/run_tests.py
+++ b/components/test/data/password_manager/automated_tests/run_tests.py
@@ -18,6 +18,9 @@ of the following structure:
tests_in_parallel=<number of parallel tests>
# |tests_to_runs| field is optional, if it is absent all tests will be run.
tests_to_run=<test names to run, comma delimited>
+ # |test_cases_to_run| field is optional, if it is absent all test cases
+ # will be run.
+ test_cases_to_run=<test names to run, comma delimited>
[logging]
# |save-only-failures| is oprional, the default is false.
save-only-failures=<boolean parameter which enforces saving results of only
@@ -213,6 +216,10 @@ def run_tests(config_path):
config.getboolean("logging", "save-only-failures")):
general_test_cmd.append("--save-only-failures")
+ if config.has_option("run_options", "test_cases_to_run"):
+ general_test_cmd += ["--test-cases-to-run",
+ config.get("run_options", "test_cases_to_run").replace(",", " ")]
+
logger = logging.getLogger("run_tests")
logger.log(SCRIPT_DEBUG, "%d tests to run: %s", len(tests_to_run),
tests_to_run)

Powered by Google App Engine
This is Rietveld 408576698