Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
ac970cca
Commit
ac970cca
authored
Sep 21, 2020
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssh fix + additional debug info
parent
b9a48b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+8
-1
No files found.
ci-scripts/cls_oaicitest.py
View file @
ac970cca
...
...
@@ -1664,9 +1664,13 @@ class OaiCiTest():
return
0
def
Iperf_analyzeV2Output
(
self
,
lock
,
UE_IPAddress
,
device_id
,
statusQueue
,
iperf_real_options
,
EPC
):
SSH
=
sshconnection
.
SSHConnection
()
result
=
re
.
search
(
'-u'
,
str
(
iperf_real_options
))
if
result
is
None
:
return
self
.
Iperf_analyzeV2TCPOutput
(
lock
,
UE_IPAddress
,
device_id
,
statusQueue
,
iperf_real_options
,
EPC
)
logging
.
debug
(
'Into Iperf_analyzeV2TCPOutput client)
response = self.Iperf_analyzeV2TCPOutput(lock, UE_IPAddress, device_id, statusQueue, iperf_real_options,EPC)
logging.debug('
Iperf_analyzeV2TCPOutput
response
returned
value
=
' + str(response))
return response
result = re.search('
Server
Report
:
', SSH.getBefore())
if result is None:
...
...
@@ -1845,6 +1849,7 @@ class OaiCiTest():
def Iperf_analyzeV3Output(self, lock, UE_IPAddress, device_id, statusQueue):
SSH = sshconnection.SSHConnection()
result = re.search('
(
?
P
<
bitrate
>
[
0
-
9
\
.]
+
[
KMG
]
bits
\
/
sec
)
+
(
?
:
|
[
0
-
9
\
.]
+
ms
+
\
d
+
\
/
\
d
+
\
((
?
P
<
packetloss
>
[
0
-
9
\
.]
+
)
%
\
))
+
(
?
:
|
receiver
)
\\\\
r
\\\\
n
(
?
:
|
\
[
*
\
d
+
\
]
Sent
\
d
+
datagrams
)
\\\\
r
\\\\
niperf
Done
\
.
', SSH.getBefore())
if result is None:
result = re.search('
(
?
P
<
error
>
iperf
:
error
-
[
a
-
zA
-
Z0
-
9
:]
+
)
', SSH.getBefore())
...
...
@@ -2134,7 +2139,9 @@ class OaiCiTest():
logging
.
debug
(
'
\u001B
[1;37;41m '
+
message
+
'
\u001B
[0m'
)
self
.
ping_iperf_wrong_exit
(
lock
,
UE_IPAddress
,
device_id
,
statusQueue
,
message
)
return
logging
.
debug
(
'Into Iperf_analyzeV2Output client)
clientStatus = self.Iperf_analyzeV2Output(lock, UE_IPAddress, device_id, statusQueue, modified_options, EPC)
logging.debug('
Iperf_analyzeV2Output
clientStatus
returned
value
=
' + str(clientStatus))
SSH.close()
# Kill the IPERF server that runs in background
...
...
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