Fix integration tests path

This commit is contained in:
alesapin 2021-12-10 10:54:37 +03:00
parent 5b06e30ea2
commit db83d82f5a
2 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,11 @@ def get_images_with_versions(reports_path, required_image, pull=True):
images_path = os.path.join(root, 'changed_images.json')
break
if not images_path:
logging.info("Images file not found")
else:
logging.info("Images file path %s", images_path)
if images_path is not None and os.path.exists(images_path):
logging.info("Images file exists")
with open(images_path, 'r', encoding='utf-8') as images_fd:

View File

@ -120,7 +120,7 @@ if __name__ == "__main__":
logging.info("Check is already finished according to github status, exiting")
sys.exit(0)
images = get_images_with_versions(temp_path, IMAGES)
images = get_images_with_versions(reports_path, IMAGES)
images_with_versions = {i.name: i.version for i in images}
result_path = os.path.join(temp_path, "output_dir")
if not os.path.exists(result_path):