]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: xlate: Print file names even if specified
authorPhil Sutter <phil@nwl.cc>
Wed, 1 Feb 2023 00:49:37 +0000 (01:49 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 17 Feb 2023 17:18:48 +0000 (18:18 +0100)
Since the script now supports running for multiple files given on
command line, do not skip printing a status line for each.

Signed-off-by: Phil Sutter <phil@nwl.cc>
xlate-test.py

index 09e3b67a853df5f95c9af2dea3a84161640d9871..6a11659868479d91ec47bc8f747b4fa7ea48b048 100755 (executable)
@@ -176,7 +176,7 @@ def run_test(name, payload):
                 result.append(name + ": " + red("Fail"))
                 result.append("nft flush ruleset call failed: " + error)
 
-    if (passed == tests) and not args.test:
+    if (passed == tests):
         print(name + ": " + green("OK"))
     if not test_passed:
         print("\n".join(result), file=sys.stderr)