aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/tdc.py
diff options
context:
space:
mode:
authorBrenda J. Butler <bjb@mojatatu.com>2018-02-14 14:09:22 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-15 15:38:33 -0500
commitf6926e85eee9be08d05170af3a2266b8d7f9cdef (patch)
tree3672adb98e4c15c2fa692e664cfdee7a7fab114d /tools/testing/selftests/tc-testing/tdc.py
parenttools: tc-testing: Introduce plugin architecture (diff)
downloadlinux-dev-f6926e85eee9be08d05170af3a2266b8d7f9cdef.tar.xz
linux-dev-f6926e85eee9be08d05170af3a2266b8d7f9cdef.zip
tools: tc-testing: rootPlugin
Move the functionality that checks for root permissions into a plugin. Signed-off-by: Brenda J. Butler <bjb@mojatatu.com> Acked-by: Lucas Bates <lucasb@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tdc.py')
-rwxr-xr-xtools/testing/selftests/tc-testing/tdc.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index 3e6f9f2e1691..a718d2b57739 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -579,10 +579,6 @@ def set_operation_mode(pm, args):
list_test_cases(alltests)
exit(0)
- if (os.geteuid() != 0):
- print("This script must be run with root privileges.\n")
- exit(1)
-
ns_create(args, pm)
if len(alltests):