Skip to content

Commit

Permalink
Run dockerhub and ecr together
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Jun 11, 2024
1 parent 59be78e commit d87af0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/run_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ def main() -> int:
logging.getLogger("urllib3").setLevel(logging.WARNING)

with TemporaryDirectory() as work_dir:
test_result = ValidationTestRunner.dispatch(args, args.distribution, work_dir).run()
if args.distribution == "docker":
test_result = ValidationTestRunner.dispatch(args, args.distribution, work_dir)
for result in test_result:
test_result = test_result.run()
else:
test_result = ValidationTestRunner.dispatch(args, args.distribution, work_dir).run()
logging.info(f'final test_result = {test_result}')
return 0 if test_result else 1 # type: ignore

Expand Down

0 comments on commit d87af0e

Please sign in to comment.