summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/zapi_v3_test.py
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-07 11:02:32 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-07 16:36:06 +0900
commit4d7e3bd16fa51f4469a0a3f5f807c20b237ee21d (patch)
tree58cd9776767a6e2e57486208ab9df0051c710af7 /test/scenario_test/zapi_v3_test.py
parenta2db0a758643717afd37e252afe6ee5d5ac20770 (diff)
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 <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/scenario_test/zapi_v3_test.py')
-rw-r--r--test/scenario_test/zapi_v3_test.py4
1 files changed, 1 insertions, 3 deletions
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"