diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-03-07 11:02:32 +0900 |
---|---|---|
committer | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-03-07 16:36:06 +0900 |
commit | 4d7e3bd16fa51f4469a0a3f5f807c20b237ee21d (patch) | |
tree | 58cd9776767a6e2e57486208ab9df0051c710af7 /test/scenario_test/vrf_neighbor_test.py | |
parent | a2db0a758643717afd37e252afe6ee5d5ac20770 (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/vrf_neighbor_test.py')
-rw-r--r-- | test/scenario_test/vrf_neighbor_test.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/scenario_test/vrf_neighbor_test.py b/test/scenario_test/vrf_neighbor_test.py index 74e5676a..de2b0e41 100644 --- a/test/scenario_test/vrf_neighbor_test.py +++ b/test/scenario_test/vrf_neighbor_test.py @@ -24,6 +24,7 @@ import time import nose from noseplugin import OptionParser, parser_option + class GoBGPTestBase(unittest.TestCase): @classmethod @@ -164,9 +165,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" |