scripts: tests: sanitycheck: changes to sanitylib to sort the warnings
While testing the warnings in scan_file() format is not the same everytime we run tests Added sorted with reverse flag so that warnings are same for every run Signed-off-by: Spoorthy Priya Yerabolu <spoorthy.priya.yerabolu@intel.com>
This commit is contained in:
parent
33c21e1f7d
commit
ad4d4fc7d1
1 changed files with 1 additions and 1 deletions
|
@ -1465,7 +1465,7 @@ Tests should reference the category and subsystem with a dot as a separator.
|
||||||
main_c[suite_regex_match.end():suite_run_match.start()])
|
main_c[suite_regex_match.end():suite_run_match.start()])
|
||||||
if achtung_matches:
|
if achtung_matches:
|
||||||
warnings = "found invalid %s in ztest_test_suite()" \
|
warnings = "found invalid %s in ztest_test_suite()" \
|
||||||
% ", ".join({match.decode() for match in achtung_matches})
|
% ", ".join(sorted({match.decode() for match in achtung_matches},reverse = True))
|
||||||
_matches = re.findall(
|
_matches = re.findall(
|
||||||
stc_regex,
|
stc_regex,
|
||||||
main_c[suite_regex_match.end():suite_run_match.start()])
|
main_c[suite_regex_match.end():suite_run_match.start()])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue