aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2017-08-15 14:00:23 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2017-08-15 14:00:23 -0700
commit15d9164fa731f72f8153f8cb5491a0cb42cc642b (patch)
tree0e053ce5017f81b94c2700e97485e8f8ff18bf8b /tools/run_tests
parent61064420067c6f655f47d479d124f358da692d66 (diff)
Modify run_tests.py to accept a list of polling engines
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-xtools/run_tests/run_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index da7d7bb9dd..80e543c9a5 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -1268,6 +1268,10 @@ argp.add_argument('--quiet_success',
'Useful when running many iterations of each test (argument -n).')
argp.add_argument('--force_default_poller', default=False, action='store_const', const=True,
help='Don\'t try to iterate over many polling strategies when they exist')
+argp.add_argument('--force_use_pollers', default=None, type=str,
+ help='Only use the specified comma-delimited list of polling engines. '
+ 'Example: --force_use_pollers epollsig,poll '
+ ' (This flag has no effect if --force_default_poller flag is also used)')
argp.add_argument('--max_time', default=-1, type=int, help='Maximum test runtime in seconds')
argp.add_argument('--bq_result_table',
default='',
@@ -1287,6 +1291,8 @@ if args.auto_set_flakes:
if args.force_default_poller:
_POLLING_STRATEGIES = {}
+elif args.force_use_pollers:
+ _POLLING_STRATEGIES[platform_string()] = args.force_use_pollers.split(',')
jobset.measure_cpu_costs = args.measure_cpu_costs