diff options
author | Florian Westphal <fw@strlen.de> | 2018-01-26 23:31:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-31 14:48:54 +0100 |
commit | 255e55b7b3efc52f42c9c8a7bac08edb00c46d8f (patch) | |
tree | 04096e7401740b251534f5d8027a27202b679895 /xlate-test.py | |
parent | 6990bbc5a76eee6683d228ec5c5e4e580b6208d5 (diff) |
tests: xlate-test: no need to require superuser privileges
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'xlate-test.py')
-rwxr-xr-x | xlate-test.py | 4 |
1 files changed, 1 insertions, 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: |