Add -w or --workdir to compose run to override workdir from commandline

Signed-off-by: Simon van der Veldt <simon.vanderveldt@gmail.com>
This commit is contained in:
Simon van der Veldt 2016-02-22 21:05:59 +01:00 committed by Daniel Nephin
commit 658803edf8
5 changed files with 30 additions and 0 deletions

View file

@ -102,6 +102,7 @@ class CLITestCase(unittest.TestCase):
'--publish': [],
'--rm': None,
'--name': None,
'--workdir': None,
})
_, _, call_kwargs = mock_run_operation.mock_calls[0]
@ -135,6 +136,7 @@ class CLITestCase(unittest.TestCase):
'--publish': [],
'--rm': None,
'--name': None,
'--workdir': None,
})
self.assertEquals(
@ -156,6 +158,7 @@ class CLITestCase(unittest.TestCase):
'--publish': [],
'--rm': True,
'--name': None,
'--workdir': None,
})
self.assertFalse(