diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-12-13 18:57:06 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-12-14 21:14:57 +0100 |
commit | 62f1da7f1bb99ac3a2e7a5f160ded3dc19c8b195 (patch) | |
tree | dad204f9810095f878493d947bd9e5599b4958d6 | |
parent | a698868d52a550bab4867c0dc502037155baa11d (diff) |
tests: regression: fix wrong number of test files
Always increment the test file counter for each test file in the list.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rwxr-xr-x | tests/regression/nft-test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regression/nft-test.py b/tests/regression/nft-test.py index 9998ab35..dea0f369 100755 --- a/tests/regression/nft-test.py +++ b/tests/regression/nft-test.py @@ -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 |