Skip to content
Snippets Groups Projects
Commit bbdb19de authored by Neta Zmora's avatar Neta Zmora
Browse files

full_flow_tests.py: relax verification of sensitivity.png

parent ce3528e4
No related branches found
No related tags found
No related merge requests found
......@@ -102,10 +102,13 @@ def collateral_checker(log, run_dir, *collateral_list):
0: file name
1: expected file size
"""
def relaxed_size_equal(a, b, relaxation):
return True if abs(a-b) <= relaxation else False
for collateral in collateral_list:
file_path = os.path.join(run_dir, collateral[0])
statinfo = os.stat(file_path)
if statinfo.st_size != collateral[1]:
if not relaxed_size_equal(statinfo.st_size, collateral[1], 2):
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment