twister: harness: fix ztest detection

Decision about whether test should be considered as ztest should be made
after detection ztest testcase - not after detection ztest test suite.

Fixes: #44397

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
This commit is contained in:
Piotr Golyzniak 2022-03-31 20:57:27 +02:00 committed by Anas Nashif
commit 806cc70f7c

View file

@ -227,7 +227,6 @@ class Test(Harness):
if test_suite_match:
suite_name = test_suite_match.group("suite_name")
self.detected_suite_names.append(suite_name)
self.ztest = True
match = result_re.match(line)
if match and match.group(2):