From 085ef63dab5856cd02344dbbacef637ba4bac546 Mon Sep 17 00:00:00 2001 From: JoeZiminski Date: Fri, 19 Apr 2024 17:55:26 +0100 Subject: [PATCH] try remove tag for windows. --- tests/ssh_test_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ssh_test_utils.py b/tests/ssh_test_utils.py index d579e16d..e67cbd96 100644 --- a/tests/ssh_test_utils.py +++ b/tests/ssh_test_utils.py @@ -101,10 +101,12 @@ def setup_project_and_container_for_ssh(project): image_path = Path(__file__).parent / "ssh_test_images" os.chdir(image_path) + # TODO: tidy add_sudo = "sudo" if platform.system() == "Linux" else "" + add_tag = "-t" if platform.system() == "Linux" else "" build_output = subprocess.run( - f"{add_sudo} docker build -t ssh_server .", + f"{add_sudo} docker build {add_tag} ssh_server .", shell=True, capture_output=True, )