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
# this will fail so that we can read its stdout/stderr
cwd = os.path.dirname(os.path.abspath(__file__))
dynamips_path = os.path.join(cwd, "dynamips.stable")
hypervisor = Hypervisor(dynamips_path, "/tmp", "172.0.0.1", 7200)
dynamips_path = '/usr/bin/dynamips'
hypervisor = Hypervisor(dynamips_path, "/tmp", "127.0.0.1", 7200)
hypervisor.start()
# give some time for Dynamips to start
time.sleep(0.01)