mirror of
https://github.com/docker/compose.git
synced 2025-07-21 12:44:54 +02:00
Add missing test constraint
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
8a08eb6688
commit
dfa7380f37
@ -737,12 +737,13 @@ class CLITestCase(DockerClientTestCase):
|
|||||||
def test_run_one_off_with_volume_merge(self):
|
def test_run_one_off_with_volume_merge(self):
|
||||||
self.base_dir = 'tests/fixtures/simple-composefile-volume-ready'
|
self.base_dir = 'tests/fixtures/simple-composefile-volume-ready'
|
||||||
volume_path = os.path.abspath(os.path.join(os.getcwd(), self.base_dir, 'files'))
|
volume_path = os.path.abspath(os.path.join(os.getcwd(), self.base_dir, 'files'))
|
||||||
create_host_file(self.client, os.path.join(volume_path, 'example.txt'))
|
node = create_host_file(self.client, os.path.join(volume_path, 'example.txt'))
|
||||||
|
|
||||||
self.dispatch([
|
self.dispatch([
|
||||||
'-f', 'docker-compose.merge.yml',
|
'-f', 'docker-compose.merge.yml',
|
||||||
'run',
|
'run',
|
||||||
'-v', '{}:/data'.format(volume_path),
|
'-v', '{}:/data'.format(volume_path),
|
||||||
|
'-e', 'constraint:node=={}'.format(node if node is not None else '*'),
|
||||||
'simple',
|
'simple',
|
||||||
'test', '-f', '/data/example.txt'
|
'test', '-f', '/data/example.txt'
|
||||||
], returncode=0)
|
], returncode=0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user