[autotest] Use new suite_args in CTS/GTS
Fix CTS/GTS use of suite_args, which was missed during the initial
change.
BUG=chromium:758427
TEST=Run test_that locally
Change-Id: Ia3541a7226e7ab4aa4f10cb81a62aa0bc6f6562b
Reviewed-on: https://chromium-review.googlesource.com/624944
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
diff --git a/test_suites/control.cts_N b/test_suites/control.cts_N
index 6abcb84..103b8c9 100644
--- a/test_suites/control.cts_N
+++ b/test_suites/control.cts_N
@@ -35,7 +35,8 @@
if not test.suite == NAME:
return False
# Strip off the cheets_CTS_N. from the test name before comparing to args
- if suite_args and not test.name[test.name.find('.') + 1:] in suite_args:
+ name = test.name[test.name.find('.') + 1:]
+ if name not in args_dict.get('tests', ()):
return False
return True