From: Florian Westphal <fw@strlen.de>
To: netfilter-devel@vger.kernel.org
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH iptables] tests: xlate-test: no need to require superuser privileges
Date: Fri, 26 Jan 2018 23:31:48 +0100 [thread overview]
Message-ID: <20180126223148.685-1-fw@strlen.de> (raw)
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
reply other threads:[~2018-01-26 22:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180126223148.685-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).