Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv RS485 OPT RTM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
Conv RS485 OPT RTM
Commits
101bf178
Commit
101bf178
authored
Mar 07, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test to check if CTR LEDs are on
parent
6bff6004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
test02.py
pts/python/tests/test02.py
+22
-20
No files found.
pts/python/tests/test02.py
View file @
101bf178
...
...
@@ -89,39 +89,41 @@ def main (card=None, default_directory='.',suite=None, serial=""):
test_results
=
{}
test_results
[
'PLL LEDs'
]
=
1
test_results
[
'Ms errors'
]
=
1
test_results
[
'PLL errors'
]
=
1
test_results
[
'Missed errors'
]
=
1
util
.
user_msg
(
"---> Please make sure that the CTR FEC is powered on and has finished booting and then press [ENTER]"
)
ret
=
raw_input
(
""
)
util
.
user_msg
(
"---> Please make sure that both the PLL and TMG LEDs on all four CTR cards are on and then press [ENTER]"
)
ret
=
raw_input
(
""
)
###############################################################################
############################ actual test ######################################
###############################################################################
for
i
in
range
(
0
,
4
):
ms1
[
i
],
pll1
[
i
],
miss1
[
i
]
=
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
i
+
1
)
if
not
util
.
ask_user
(
"Are the PLL and TMG LEDs on all four CTR cards ON?"
):
test_results
[
'PLL LEDs'
]
=
0
util
.
err_msg
(
"Some of the optical transmitters/receivers might be broken"
)
else
:
for
i
in
range
(
0
,
4
):
ms1
[
i
],
pll1
[
i
],
miss1
[
i
]
=
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
i
+
1
)
time
.
sleep
(
duration
)
time
.
sleep
(
duration
)
for
i
in
range
(
0
,
4
):
ms2
[
i
],
pll2
[
i
],
miss2
[
i
]
=
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
i
+
1
)
for
i
in
range
(
0
,
4
):
ms2
[
i
],
pll2
[
i
],
miss2
[
i
]
=
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
i
+
1
)
if
(
ms1
[
i
]
!=
ms2
[
i
]):
test_results
[
'Ms errors'
]
=
0
util
.
err_msg
(
"Module
%
s: Ms errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
ms2
[
i
],
ms1
[
i
]))
if
(
ms1
[
i
]
!=
ms2
[
i
]):
test_results
[
'Ms errors'
]
=
0
util
.
err_msg
(
"Module
%
s: Ms errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
ms2
[
i
],
ms1
[
i
]))
if
(
pll1
[
i
]
!=
pll2
[
i
]):
test_results
[
'PLL errors'
]
=
0
util
.
err_msg
(
"Module
%
s: PLL errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
pll2
[
i
],
pll1
[
i
]))
if
(
pll1
[
i
]
!=
pll2
[
i
]):
test_results
[
'PLL errors'
]
=
0
util
.
err_msg
(
"Module
%
s: PLL errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
pll2
[
i
],
pll1
[
i
]))
if
(
miss1
[
i
]
!=
miss2
[
i
]):
test_results
[
'Missed errors'
]
=
0
util
.
err_msg
(
"Module
%
s: Missed errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
miss2
[
i
],
miss1
[
i
]))
if
(
miss1
[
i
]
!=
miss2
[
i
]):
test_results
[
'Missed errors'
]
=
0
util
.
err_msg
(
"Module
%
s: Missed errors detected ({
%
s} != {
%
s})"
%
(
i
+
1
,
miss2
[
i
],
miss1
[
i
]))
###############################################################################
########################## result processing ##################################
...
...
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