Commit 368b9795ae3b3bd6fe659110a6595e9430b2d48d

Patrick Steinhardt 2019-07-18T11:27:21

Merge pull request #5168 from tiennou/clar/fix-data-suite-count clar: correctly account for "data" suites when counting

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())