]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: regression: fix wrong number of test files
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 13 Dec 2014 17:57:06 +0000 (18:57 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 14 Dec 2014 20:14:57 +0000 (21:14 +0100)
Always increment the test file counter for each test file in the list.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/regression/nft-test.py

index 9998ab3583fa51541b8fc77805ef9ec7cb12a687..dea0f36946e00dee4432d468f7227db97fc23b23 100755 (executable)
@@ -830,6 +830,8 @@ def main():
         file_errors = result[3]
         file_unit_run = result[4]
 
+        test_files += 1
+
         if file_warnings == 0 and file_tests == file_passed:
             files_ok += 1
         if file_tests:
@@ -837,7 +839,6 @@ def main():
             passed += file_passed
             errors += file_errors
             warnings += file_warnings
-            test_files += 1
         if force_all_family_option:
             run_total += file_unit_run