From 4d7e3bd16fa51f4469a0a3f5f807c20b237ee21d Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 7 Mar 2017 11:02:32 +0900 Subject: scenario_test: Remove "sudo" command for running tests For the convenience when running scenario_test on Python virtualenv, this patch removes "sudo" command for running tests. Note: To enable to execute Docker without the root privilege, add your local user into "docker" group. Signed-off-by: IWASE Yusuke --- test/scenario_test/zapi_v3_test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/scenario_test/zapi_v3_test.py') diff --git a/test/scenario_test/zapi_v3_test.py b/test/scenario_test/zapi_v3_test.py index 28834cfb..a08550ec 100644 --- a/test/scenario_test/zapi_v3_test.py +++ b/test/scenario_test/zapi_v3_test.py @@ -25,6 +25,7 @@ import nose from noseplugin import OptionParser, parser_option from itertools import chain + class GoBGPTestBase(unittest.TestCase): @classmethod @@ -91,9 +92,6 @@ class GoBGPTestBase(unittest.TestCase): if __name__ == '__main__': - if os.geteuid() is not 0: - print "you are not root." - sys.exit(1) output = local("which docker 2>&1 > /dev/null ; echo $?", capture=True) if int(output) is not 0: print "docker not found" -- cgit v1.2.3