Commit 72fc99f2 authored by Peter Kotwicz's avatar Peter Kotwicz Committed by Commit Bot

Fix typ test detection in run_isolated_script_test.py

This CL changes the KNOWN_TYP_TEST_RUNNERS matching to occur against
the script basename.

BUG=11353980

Change-Id: I8556d1abb29bbcd1ce0494f55f3761e99dc08cc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450492Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814092}
parent d95f3438
......@@ -108,7 +108,7 @@ class TypUnittestAdapter(common.BaseIsolatedScriptArgsAdapter):
self._temp_filter_file.write('\n'.join(filter_list))
self._temp_filter_file.close()
arg_name = 'test-list'
if KNOWN_TYP_TEST_RUNNERS.intersection(self.rest_args):
if any(r in self.rest_args[0] for r in KNOWN_TYP_TEST_RUNNERS):
arg_name = 'file-list'
return ['--%s=' % arg_name + self._temp_filter_file.name]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment