Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuschel committed Jul 13, 2022
1 parent 7aab708 commit fe76556
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/ci/unit_tests_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

from github import Github

from env_helper import TEMP_PATH, REPO_COPY, REPORTS_PATH
from env_helper import DOCKER_USER, DOCKER_REPO, TEMP_PATH, REPO_COPY, REPORTS_PATH
from s3_helper import S3Helper
from get_robot_token import get_best_robot_token
from get_robot_token import get_best_robot_token, get_parameter_from_ssm
from pr_info import PRInfo
from build_download_helper import download_unit_tests
from upload_result_helper import upload_results
Expand Down Expand Up @@ -121,6 +121,13 @@ def process_result(result_folder):
logging.info("Check is already finished according to github status, exiting")
sys.exit(0)

subprocess.check_output( # pylint: disable=unexpected-keyword-arg
"docker login {} --username '{}' --password-stdin".format(DOCKER_REPO, DOCKER_USER),
input=get_parameter_from_ssm("dockerhub_robot_password"),
encoding="utf-8",
shell=True,
)

docker_image = get_image_with_version(reports_path, IMAGE_NAME)

download_unit_tests(check_name, reports_path, temp_path)
Expand Down

0 comments on commit fe76556

Please sign in to comment.