summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-11-26 11:40:11 +0000
committerThomas Wood <thomas.wood@intel.com>2015-01-07 10:28:26 +0000
commitb9ec5e993569426987e68959e584bba23579e76c (patch)
treee745fba9404676d574c9ac76f3a824c890a3cda9
parentfa7dcba7cf4b442060e6d485bcbe2e6469fbdc2e (diff)
run.py: add an option to load a test list from a file
Signed-off-by: Thomas Wood <thomas.wood@intel.com> Acked-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r--framework/programs/run.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/programs/run.py b/framework/programs/run.py
index ac96d2eb5..89ccd1169 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -180,6 +180,8 @@ def _run_parser(input_):
choices=['quiet', 'verbose', 'dummy'],
default='quiet',
help="Set the logger verbosity level")
+ parser.add_argument("--test-list",
+ help="A file containing a list of tests to run")
parser.add_argument("test_profile",
metavar="<Path to one or more test profile(s)>",
nargs='+',
@@ -242,6 +244,12 @@ def run(input_):
if args.dmesg:
args.concurrency = "none"
+ # build up the include filter based on test_list
+ if args.test_list:
+ with open(args.test_list) as test_list:
+ for line in test_list.readlines():
+ args.include_tests.append(line.rstrip())
+
# Pass arguments into Options
opts = core.Options(concurrent=args.concurrency,
exclude_filter=args.exclude_tests,