1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Update test_hypervisor.py

+ test_stdout: use system dynamips
 + test_stdout: correct host address to start dynamips on
This commit is contained in:
Daniel Lintott 2014-08-08 15:00:44 +01:00
parent 8fc4667d2c
commit 9b010d6388

View File

@ -33,9 +33,8 @@ def test_stdout():
# try to launch Dynamips on the same port # try to launch Dynamips on the same port
# this will fail so that we can read its stdout/stderr # this will fail so that we can read its stdout/stderr
cwd = os.path.dirname(os.path.abspath(__file__)) dynamips_path = '/usr/bin/dynamips'
dynamips_path = os.path.join(cwd, "dynamips.stable") hypervisor = Hypervisor(dynamips_path, "/tmp", "127.0.0.1", 7200)
hypervisor = Hypervisor(dynamips_path, "/tmp", "172.0.0.1", 7200)
hypervisor.start() hypervisor.start()
# give some time for Dynamips to start # give some time for Dynamips to start
time.sleep(0.01) time.sleep(0.01)