Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
distiller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
distiller
Commits
bbdb19de
Commit
bbdb19de
authored
5 years ago
by
Neta Zmora
Browse files
Options
Downloads
Patches
Plain Diff
full_flow_tests.py: relax verification of sensitivity.png
parent
ce3528e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/full_flow_tests.py
+4
-1
4 additions, 1 deletion
tests/full_flow_tests.py
with
4 additions
and
1 deletion
tests/full_flow_tests.py
+
4
−
1
View file @
bbdb19de
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment