Skip to content

Commit

Permalink
try remove tag for windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Apr 19, 2024
1 parent 689db1d commit 085ef63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ssh_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 085ef63

Please sign in to comment.