clar: correctly account for "data" suites when counting Failing to do that makes clar miss the last of the suites, as all duplicated "data" would have not been accounted for.
diff --git a/tests/generate.py b/tests/generate.py
old mode 100644
new mode 100755
index 572a57f..82e4365
--- a/tests/generate.py
+++ b/tests/generate.py
@@ -210,7 +210,7 @@ class TestSuite(object):
module.modified = True
def suite_count(self):
- return len(self.modules)
+ return sum(len(module.initializers) for module in self.modules.values())
def callback_count(self):
return sum(len(module.callbacks) for module in self.modules.values())