Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
fix(run_docker_test): fix build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <[email protected]>
  • Loading branch information
suchapalaver committed Feb 1, 2023
1 parent a80daed commit 5a659f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/run_docker_test
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():
inspect = [
'docker', 'inspect',
'-f', "{{.State.ExitCode}}",
"{}_{}_1".format(
"{}-{}-1".format(
isolation_id,
test_service)
]
Expand All @@ -97,7 +97,7 @@ def main():

for service in compose_dict['services']:
scrape += [
'--filter', 'name={}_{}_1'.format(isolation_id, service),
'--filter', 'name={}-{}-1'.format(isolation_id, service),
]

timer = Timer(args.timeout)
Expand Down Expand Up @@ -310,7 +310,7 @@ def _validate_compose_dict(compose_dict, test_service, compose_file):
def _check_for_existing_containers(compose_file, compose_dict, isolation_id):
containers = _get_existing_containers()
for service in compose_dict['services'].keys():
container_name_to_create = "{}_{}_1".format(isolation_id, service)
container_name_to_create = "{}-{}-1".format(isolation_id, service)
for existing_container_name in containers:
if container_name_to_create == existing_container_name:
raise RunDockerTestError(
Expand Down

0 comments on commit 5a659f6

Please sign in to comment.