* [PATCH iptables] tests: xlate-test: no need to require superuser privileges
@ 2018-01-26 22:31 Florian Westphal
0 siblings, 0 replies; only message in thread
From: Florian Westphal @ 2018-01-26 22:31 UTC (permalink / raw)
To: netfilter-devel; +Cc: Florian Westphal
Signed-off-by: Florian Westphal <fw@strlen.de>
---
xlate-test.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/xlate-test.py b/xlate-test.py
index 53b035c7..dbba1d67 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -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:
--
2.14.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-26 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-26 22:31 [PATCH iptables] tests: xlate-test: no need to require superuser privileges Florian Westphal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).