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
183f00ba
Commit
183f00ba
authored
Mar 07, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add path to rsa key to CONFIG.ini
parent
d18731bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CONFIG.ini
pts/CONFIG.ini
+2
-1
test02.py
pts/python/tests/test02.py
+5
-4
No files found.
pts/CONFIG.ini
View file @
183f00ba
...
...
@@ -14,4 +14,5 @@ MgtPassword = Gr@nBr@st0
CpuHostName
=
cfv-774-opt-pts1
CpuPort
=
22
# Please set CpuUserName to an account name you have access to on the CTR.FEC
CpuUserName
=
nobody
CpuUserName
=
optpts1
CpuUserNameRsa
=
~/.ssh/id_rsa
pts/python/tests/test02.py
View file @
183f00ba
...
...
@@ -43,10 +43,10 @@ import utilities as util
import
ptsexcept
def
get_ctrtest_err
(
user
,
host
,
port
,
module
):
def
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
module
):
cmd
=
'echo "mo {0} rst" | /usr/local/bin/ctrtest-timdt | grep -A 7 -e MsMissedErrs | xargs'
.
format
(
module
)
output
=
os
.
popen
(
"ssh -
p
%
d
%
s@
%
s '
%
s'"
%
(
port
,
user
,
host
,
cmd
))
.
read
()
output
=
os
.
popen
(
"ssh -
i
%
s -p
%
d
%
s@
%
s '
%
s'"
%
(
rsa
,
port
,
user
,
host
,
cmd
))
.
read
()
items
=
string
.
split
(
output
)
...
...
@@ -73,6 +73,7 @@ def main (card=None, default_directory='.',suite=None, serial=""):
host
=
config
[
'CTR.FEC'
][
'CpuHostName'
]
port
=
int
(
config
[
'CTR.FEC'
][
'CpuPort'
])
user
=
config
[
'CTR.FEC'
][
'CpuUserName'
]
rsa
=
config
[
'CTR.FEC'
][
'CpuUserNameRsa'
]
duration
=
float
(
config
[
'CTR.FEC'
][
'TstDuration'
])
...
...
@@ -103,12 +104,12 @@ def main (card=None, default_directory='.',suite=None, serial=""):
###############################################################################
for
i
in
range
(
0
,
4
):
ms1
[
i
],
pll1
[
i
],
miss1
[
i
]
=
get_ctrtest_err
(
user
,
host
,
port
,
i
+
1
)
ms1
[
i
],
pll1
[
i
],
miss1
[
i
]
=
get_ctrtest_err
(
user
,
rsa
,
host
,
port
,
i
+
1
)
time
.
sleep
(
duration
)
for
i
in
range
(
0
,
4
):
ms2
[
i
],
pll2
[
i
],
miss2
[
i
]
=
get_ctrtest_err
(
user
,
host
,
port
,
i
+
1
)
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
...
...
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