Commit 4cd8dfaa308fda829fe365b5309d00a1afae7f18

Etienne Samson 2019-07-16T20:20:55

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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())