Test work without vpcs binary

This commit is contained in:
Julien Duponchelle committed 2015-01-20 22:50:26 +01:00
1 parent 0eaa7be86a
commit 984d47f9c8
5 files changed
+10 -7

No files matched your search

-1
View File
@@ -157,7 +157,6 @@ class PortManager:
Get an available TCP console port and reserve it
"""
print("FREE")
port = self.find_unused_port(self._console_port_range[0],
self._console_port_range[1],
host=self._console_host,
+2 -2
View File
@@ -77,8 +77,6 @@ class VPCSVM(BaseVM):
else:
self._console = self._manager.port_manager.get_free_console_port()
self._check_requirements()
def __del__(self):
self._kill_process()
@@ -169,6 +167,8 @@ class VPCSVM(BaseVM):
Starts the VPCS process.
"""
self._check_requirements()
if not self.is_running():
if not self._ethernet_adapter.get_nio(0):
raise VPCSError("This VPCS instance must be connected in order to start")