X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fintegrated%2Fcompare_perpatch.py;h=3821054849173df42ca154a1f37ee9ba36b18dff;hb=6d69d728bf9e469641550a57cf7bc37c7d19b84e;hp=ab1a557560dbbbe27dcfae54741bf004831de7ca;hpb=5b9a3459fdf3b0dfd64ddfe4ffbe954aed527a96;p=csit.git diff --git a/resources/tools/integrated/compare_perpatch.py b/resources/tools/integrated/compare_perpatch.py index ab1a557560..3821054849 100644 --- a/resources/tools/integrated/compare_perpatch.py +++ b/resources/tools/integrated/compare_perpatch.py @@ -114,15 +114,14 @@ def main() -> int: # TODO: Version of classify that takes max_value and list of stats? # That matters if only stats (not list of floats) are given. classified_list = jumpavg.classify([parent_values, current_values]) - if len(classified_list) < 2: - print(f"Test {name}: normal (no anomaly)") - continue - anomaly = classified_list[1].comment - if anomaly == "regression": - print(f"Test {name}: anomaly regression") - exit_code = 3 # 1 or 2 can be caused by other errors - continue - print(f"Test {name}: anomaly {anomaly}") + anomaly_name = "normal (no anomaly)" + if len(classified_list) > 1: + anomaly = classified_list[1].comment + anomaly_name = "anomaly progression" + if anomaly == "regression": + anomaly_name = "anomaly regression" + exit_code = 3 # 1 or 2 can be caused by other errors + print(f"Test name {name}: {anomaly_name}") print(f"Exit code: {exit_code}") return exit_code