Skip to content

Commit fe76556

Browse files
committed
Fix unit tests
1 parent 7aab708 commit fe76556

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/ci/unit_tests_check.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
from github import Github
99

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

124+
subprocess.check_output( # pylint: disable=unexpected-keyword-arg
125+
"docker login {} --username '{}' --password-stdin".format(DOCKER_REPO, DOCKER_USER),
126+
input=get_parameter_from_ssm("dockerhub_robot_password"),
127+
encoding="utf-8",
128+
shell=True,
129+
)
130+
124131
docker_image = get_image_with_version(reports_path, IMAGE_NAME)
125132

126133
download_unit_tests(check_name, reports_path, temp_path)

0 commit comments

Comments
 (0)