summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2019-07-16 20:20:55 +0200
committerEtienne Samson <samson.etienne@gmail.com>2019-07-16 20:20:55 +0200
commit4cd8dfaa308fda829fe365b5309d00a1afae7f18 (patch)
treead92fcb4765f33d2abe38159749740bc64962646 /tests
parentf92d495d44bff2bdb6fd99524a93986ea268c9e8 (diff)
downloadlibgit2-4cd8dfaa308fda829fe365b5309d00a1afae7f18.tar.gz
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.
Diffstat (limited to 'tests')
-rwxr-xr-x[-rw-r--r--]tests/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generate.py b/tests/generate.py
index 572a57f86..82e436532 100644..100755
--- 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())