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/bgp_zebra_test.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/scenario_test/bgp_zebra_test.py') diff --git a/test/scenario_test/bgp_zebra_test.py b/test/scenario_test/bgp_zebra_test.py index a5b57cf8..24b1477f 100644 --- a/test/scenario_test/bgp_zebra_test.py +++ b/test/scenario_test/bgp_zebra_test.py @@ -285,9 +285,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