From a180482212e3d987a57c866339210a7c58c755fd Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Sat, 26 Oct 2024 21:55:47 +0100 Subject: [PATCH] Fix docker compose --- tests/test_output_by_variant.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_output_by_variant.py b/tests/test_output_by_variant.py index 2dca944a..b5eb30c3 100644 --- a/tests/test_output_by_variant.py +++ b/tests/test_output_by_variant.py @@ -56,7 +56,7 @@ def test_nebra_indoor1_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {nebra_indoor1_output_file} config -q', shell=True) + f'docker compose -f {nebra_indoor1_output_file} config -q', shell=True) def test_nebra_outdoor1_compose_output_is_valid(self): dc = DockerComposer() @@ -66,7 +66,7 @@ def test_nebra_outdoor1_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {nebra_outdoor1_output_file} config -q', shell=True) + f'docker compose -f {nebra_outdoor1_output_file} config -q', shell=True) def test_nebra_indoor2_compose_output_is_valid(self): dc = DockerComposer() @@ -76,7 +76,7 @@ def test_nebra_indoor2_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {nebra_indoor2_output_file} config -q', shell=True) + f'docker compose -f {nebra_indoor2_output_file} config -q', shell=True) def test_nebra_outdoor2_compose_output_is_valid(self): dc = DockerComposer() @@ -86,7 +86,7 @@ def test_nebra_outdoor2_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {nebra_outdoor2_output_file} config -q', shell=True) + f'docker compose -f {nebra_outdoor2_output_file} config -q', shell=True) def test_syncrobit_compose_output_is_valid(self): dc = DockerComposer() @@ -96,7 +96,7 @@ def test_syncrobit_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {syncrobit_output_file} config -q', shell=True) + f'docker compose -f {syncrobit_output_file} config -q', shell=True) def test_pycom_compose_output_is_valid(self): dc = DockerComposer() @@ -106,7 +106,7 @@ def test_pycom_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {pycom_output_file} config -q', shell=True) + f'docker compose -f {pycom_output_file} config -q', shell=True) def test_controllino_compose_output_is_valid(self): dc = DockerComposer() @@ -116,7 +116,7 @@ def test_controllino_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {controllino_output_file} config -q', shell=True) + f'docker compose -f {controllino_output_file} config -q', shell=True) def test_rak_compose_output_is_valid(self): dc = DockerComposer() @@ -126,7 +126,7 @@ def test_rak_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {rak_output_file} config -q', shell=True) + f'docker compose -f {rak_output_file} config -q', shell=True) def test_bobcat_px30_compose_output_is_valid(self): dc = DockerComposer() @@ -136,7 +136,7 @@ def test_bobcat_px30_compose_output_is_valid(self): # so if this runs without that, it's considered successful as # `docker-compose config -q` returns 1 on invalid config check_call( - f'docker-compose -f {bobcat_px30_output_file} config -q', shell=True) + f'docker compose -f {bobcat_px30_output_file} config -q', shell=True) def test_variant_is_invalid(self): dc = DockerComposer()