summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-02-01 01:49:37 +0100
committerPhil Sutter <phil@nwl.cc>2023-02-17 18:18:48 +0100
commit7e63a66e3f02e127895cfc82415219241e3ff6b3 (patch)
tree026c2ef319d34bde54f001d7039e79f0170aa146
parent914350a4586d2817ca7c4919c53142562f27bdaf (diff)
downloadiptables-7e63a66e3f02e127895cfc82415219241e3ff6b3.tar.gz
tests: xlate: Print file names even if specified
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>
-rwxr-xr-xxlate-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlate-test.py b/xlate-test.py
index 09e3b67a..6a116598 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -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)