]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: xlate-test: no need to require superuser privileges
authorFlorian Westphal <fw@strlen.de>
Fri, 26 Jan 2018 22:31:48 +0000 (23:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 31 Jan 2018 13:48:54 +0000 (14:48 +0100)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
xlate-test.py

index 53b035c78f91ac8df74421d214941ab392c4498d..dbba1d673ec9f6d35154db594ddde9e0d35751c2 100755 (executable)
@@ -86,9 +86,7 @@ def load_test_files():
     print("%d test files, %d tests, %d tests passed, %d tests failed, %d errors" % (test_files, total_tests, total_passed, total_failed, total_error))
 
 def main():
-    if os.getuid() != 0:
-        print(red("Error: ") + "You need to be root to run this, sorry")
-    elif args.test:
+    if args.test:
         if not args.test.endswith(".txlate"):
             args.test += ".txlate"
         try: