Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PandABox-tst
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PandABox-tst
Commits
f43a936a
Commit
f43a936a
authored
Jun 06, 2017
by
Christopher Turner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring
parent
d8a8c178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
EncoderLoopBack.py
tests/EncoderLoopBack.py
+0
-1
LoopBack.py
tests/LoopBack.py
+6
-9
No files found.
tests/EncoderLoopBack.py
View file @
f43a936a
...
...
@@ -36,4 +36,3 @@ class EncoderLB(Encoder.Encoder):
self
.
outputs
[
0
]:
self
.
inputs
[
0
]
}
self
.
toggle_val
(
'OUTENC'
,
''
,
'INENC'
,
''
,
default_val
)
tests/LoopBack.py
View file @
f43a936a
...
...
@@ -75,13 +75,15 @@ class LoopBack(PandATest.PandATest):
''
.
join
([
'-'
]
*
28
)
))
for
attempt
in
[
1
,
2
]:
self
.
logger
.
info
(
'---- ATTEMPT {} {}'
.
format
(
attempt
,
''
.
join
([
'-'
]
*
28
)))
self
.
logger
.
info
(
'---- ATTEMPT {} {}'
.
format
(
attempt
,
''
.
join
([
'-'
]
*
28
)))
test_cls
.
test_code
()
if
test_cls
.
test_result
.
count
(
0
)
!=
0
and
attempt
==
1
:
test_cls
.
test_result
=
[]
os
.
system
(
"./load-state {} base.state"
.
format
(
self
.
hostname
))
self
.
check_connectors
(
test_cls
.
__class__
.
__name__
,
test_cls
.
blocknum
)
self
.
check_connectors
(
test_cls
.
__class__
.
__name__
,
test_cls
.
blocknum
)
elif
test_cls
.
test_result
.
count
(
0
)
==
0
:
print
'TEST PASSED! ({} {})'
.
format
(
test_cls
.
__class__
.
__name__
,
test_cls
.
blocknum
)
...
...
@@ -109,11 +111,6 @@ class LoopBack(PandATest.PandATest):
def
check_connectors
(
self
,
test
,
block_no
):
inputy
=
'.'
while
inputy
not
in
[
''
]:
print
"TEST FAILED! ({} {}), Check connectors connected [return]"
.
format
(
test
,
block_no
)
print
"TEST FAILED! ({} {}),"
\
" Check connectors connected [return]"
.
format
(
test
,
block_no
)
inputy
=
raw_input
()
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