From 156275b0ab654a20225694d4e308c867f5d6ec19 Mon Sep 17 00:00:00 2001
From: Tim Jammer <tim.jammer@tu-darmstadt.de>
Date: Fri, 3 May 2024 12:57:21 +0200
Subject: [PATCH] remove duplicate testcases

---
 scripts/errors/coll/CallOrdering.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/scripts/errors/coll/CallOrdering.py b/scripts/errors/coll/CallOrdering.py
index 4f9518fac..c566717b5 100644
--- a/scripts/errors/coll/CallOrdering.py
+++ b/scripts/errors/coll/CallOrdering.py
@@ -38,9 +38,12 @@ class InvalidRankErrorColl(ErrorGenerator):
                 call.set_has_error()
 
             yield tm
+            if not generate_level <= BASIC_TEST_LEVEL:
+                break
+                # basic test level only tests each error once, no need to loop all functions
 
-        for func1 in self.functions_to_use:
-            for func2 in self.functions_to_use:  # this generates func1-func2 and func2-func1 -> we need to remove similar cases
+        for i, func1 in enumerate(self.functions_to_use):
+            for func2 in self.functions_to_use[i:]:
                 tm = get_two_collective_template(func1, func2)
 
                 tm.set_description("CallOrdering-unmatched-" + func1 + "-" + func2,
-- 
GitLab