Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oc_jpegencode_vdt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
oc_jpegencode_vdt
Commits
e4ab1810
Commit
e4ab1810
authored
Jan 09, 2015
by
chiggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove coverage debug, add pragmas
parent
506b2b38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
interfaces.py
tb/interfaces.py
+1
-1
test_jpeg_top.py
tb/test_jpeg_top.py
+0
-10
No files found.
tb/interfaces.py
View file @
e4ab1810
...
...
@@ -56,7 +56,7 @@ class ImageDriver(Driver):
image (PIL.Image) image to send into the dut
"""
if
image
.
mode
!=
"RGB"
:
if
image
.
mode
!=
"RGB"
:
# pragma: no cover
raise
TypeError
(
"Require an format RGB image"
)
width
,
height
=
image
.
size
...
...
tb/test_jpeg_top.py
View file @
e4ab1810
...
...
@@ -59,16 +59,6 @@ def process_image(dut, filename="", debug=False, threshold=0.22):
raise
TestFailure
(
"Resulting image file was too different (
%
f >
%
f)"
%
(
difference
,
threshold
))
try
:
import
coverage
except
ImportError
as
e
:
import
os
,
sys
print
sys
.
path
if
os
.
path
.
isdir
(
"/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages"
):
print
os
.
listdir
(
"/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages"
)
else
:
print
"/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages doesn't exist"
tf
=
TestFactory
(
process_image
)
tf
.
add_option
(
"filename"
,
[
os
.
path
.
join
(
'test_images'
,
f
)
for
f
in
os
.
listdir
(
'test_images'
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment