Support combination of shorthand flag and equal sign for host option
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
d0b46ca9b2
commit
11d8093fc8
2 changed files with 11 additions and 1 deletions
|
|
@ -145,6 +145,13 @@ class CLITestCase(DockerClientTestCase):
|
|||
# Prevent tearDown from trying to create a project
|
||||
self.base_dir = None
|
||||
|
||||
def test_shorthand_host_opt(self):
|
||||
self.dispatch(
|
||||
['-H={0}'.format(os.environ.get('DOCKER_HOST', 'unix://')),
|
||||
'up', '-d'],
|
||||
returncode=0
|
||||
)
|
||||
|
||||
def test_config_list_services(self):
|
||||
self.base_dir = 'tests/fixtures/v2-full'
|
||||
result = self.dispatch(['config', '--services'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue