Commit 44f7ba07 authored by Anas Nashif's avatar Anas Nashif Committed by Carles Cufi
Browse files

sanitycheck: detect wrongly named tests and fail



Tests should always start with test_. If not, they will not be in the
report.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 8a7ece21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1406,6 +1406,9 @@ Tests should reference the category and subsystem with a dot as a separator.
                _matches = re.findall(
                    stc_regex,
                    main_c[suite_regex_match.end():suite_run_match.start()])
                for match in _matches:
                    if not match.decode().startswith("test_"):
                        warnings = "Found a test that does not start with test_"
                matches = [match.decode().replace("test_", "") for match in _matches]
                return matches, warnings