Commit dc17accb authored by Maxime Hubert's avatar Maxime Hubert
Browse files

Relax constraints on container output

parent ee2d4b3e
Pipeline #134504 passed with stage
in 28 seconds
......@@ -7,6 +7,7 @@ import importlib
import logging
import os
import sys
import glob
root_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../../')
......@@ -91,11 +92,11 @@ def validate_container_output():
for dataset_id in os.listdir(container_output_dir):
dataset_id_path = os.path.join(container_output_dir, dataset_id)
if os.path.isdir(dataset_id_path):
files = os.listdir(dataset_id_path)
content = import_expected_result('expected_container_output.txt')
for file_name in content:
dataset_filename = dataset_id + '_' + file_name
if not dataset_filename in files:
dataset_filename = '*' + file_name
files = os.path.join(dataset_id_path, dataset_filename)
if not glob.glob(files):
raise Exception("System validation failed, {} not present in {}".format(dataset_filename, dataset_id))
logging.info(" .. {} is valid".format(dataset_id))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment