Skip to content

Commit

Permalink
run linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Apr 18, 2024
1 parent 203b1d9 commit b4bb0a4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/ssh_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,19 @@ def setup_project_and_container_for_ssh(project):
image_path = Path(__file__).parent / "ssh_test_images"
os.chdir(image_path)

build_output = subprocess.run("docker build -t ssh_server .", shell=True, capture_output=True)
assert build_output.returncode == 0, f"docker build failed with: STDOUT-{build_output.stdout} STDERR-{build_output.stderr}"
build_output = subprocess.run(
"docker build -t ssh_server .", shell=True, capture_output=True
)
assert (
build_output.returncode == 0
), f"docker build failed with: STDOUT-{build_output.stdout} STDERR-{build_output.stderr}"

run_output = subprocess.run(
"docker run -d -p 22:22 ssh_server", shell=True, capture_output=True
) # ; docker build -t ssh_server .", shell=True) # ;docker run -p 22:22 ssh_server
assert run_output.returncode == 0, f"docker run failed with: STDOUT-{run_output.stdout} STDERR-{run_output.stderr}"
assert (
run_output.returncode == 0
), f"docker run failed with: STDOUT-{run_output.stdout} STDERR-{run_output.stderr}"

setup_project_for_ssh(
project,
Expand Down

0 comments on commit b4bb0a4

Please sign in to comment.