Skip to contentSkip to conversation

tests: xlate-test: no need to require superuser privileges

PATCH New Florian Westphal 1 participant 1 message Jan 26, 2018 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 tests: xlate-test: no need to require superuser privileges

---
 xlate-test.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
xlate-test.py +1 -3
index 53b035c7..dbba1d67 100755
@@ -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:
Signature · 1 line
2.14.3