mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
parent
7aedfc92fa
commit
f4f9e6eba6
@ -95,6 +95,10 @@ class DockerVM(BaseVM):
|
||||
|
||||
@start_command.setter
|
||||
def start_command(self, command):
|
||||
command = command.strip()
|
||||
if len(command) == 0:
|
||||
self._start_command = None
|
||||
else:
|
||||
self._start_command = command
|
||||
|
||||
@property
|
||||
|
@ -60,6 +60,15 @@ def test_json(vm, project):
|
||||
}
|
||||
|
||||
|
||||
def test_start_command(vm):
|
||||
|
||||
vm.start_command = "hello"
|
||||
assert vm.start_command == "hello"
|
||||
vm.start_command = " "
|
||||
assert vm.start_command is None
|
||||
|
||||
|
||||
|
||||
def test_create(loop, project, manager):
|
||||
|
||||
response = {
|
||||
|
Loading…
Reference in New Issue
Block a user