summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiptables-test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/iptables-test.py b/iptables-test.py
index 2aac8ef2..fdb4e6a3 100755
--- a/iptables-test.py
+++ b/iptables-test.py
@@ -359,10 +359,14 @@ def main():
print("Couldn't open log file %s" % LOGFILE)
return
- file_list = [os.path.join(EXTENSIONS_PATH, i)
- for i in os.listdir(EXTENSIONS_PATH)]
if args.filename:
file_list = [args.filename]
+ else:
+ file_list = [os.path.join(EXTENSIONS_PATH, i)
+ for i in os.listdir(EXTENSIONS_PATH)
+ if i.endswith('.t')]
+ file_list.sort()
+
for filename in file_list:
file_tests, file_passed = run_test_file(filename, args.netns)
if file_tests: