Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
0530a1b5
Commit
0530a1b5
authored
Jan 03, 2022
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing ping analysis (extra stats) for module UE
parent
a980ffc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+5
-3
No files found.
ci-scripts/cls_oaicitest.py
View file @
0530a1b5
...
...
@@ -1579,6 +1579,7 @@ class OaiCiTest():
SSH
.
open
(
EPC
.
IPAddress
,
EPC
.
UserName
,
EPC
.
Password
)
#cat is executed on EPC
SSH
.
command
(
'cat '
+
EPC
.
SourceCodePath
+
'/scripts/ping_'
+
self
.
testCase_id
+
'_'
+
device_id
+
'.log'
,
'\$'
,
5
)
ping_log_file
=
'ping_'
+
self
.
testCase_id
+
'_'
+
device_id
+
'.log'
else
:
#launch from Module
SSH
.
open
(
Module_UE
.
HostIPAddress
,
Module_UE
.
HostUsername
,
Module_UE
.
HostPassword
)
#target address is different depending on EPC type
...
...
@@ -1596,6 +1597,7 @@ class OaiCiTest():
#cat is executed locally
SSH
.
command
(
'cat ping_'
+
self
.
testCase_id
+
'_'
+
self
.
ue_id
+
'.log'
,
'\$'
,
5
)
ping_log_file
=
'ping_'
+
self
.
testCase_id
+
'_'
+
self
.
ue_id
+
'.log'
ping_status
=
0
# TIMEOUT CASE
...
...
@@ -1643,7 +1645,7 @@ class OaiCiTest():
logging
.
debug
(
'
\u001B
[1;34m '
+
max_msg
+
'
\u001B
[0m'
)
#adding extra ping stats from local file
ping_log_file
=
'ping_'
+
self
.
testCase_id
+
'_'
+
device_id
+
'.log'
#ping_log_file variable is defined above in this function, depending on device/ue
logging
.
debug
(
'Analyzing Ping log file : '
+
os
.
getcwd
()
+
'/'
+
ping_log_file
)
ping_stat
=
GetPingTimeAnalysis
(
ping_log_file
)
ping_stat_msg
=
''
...
...
@@ -2088,12 +2090,12 @@ class OaiCiTest():
packetloss
+=
'%'
#checking packet loss compliance
if
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
):
pal_too_high_msg
=
'Packet Loss too high :
actual
= '
+
packetloss
+
', target = '
+
self
.
iperf_packetloss_threshold
+
'%'
pal_too_high_msg
=
'Packet Loss too high :
tested
= '
+
packetloss
+
', target = '
+
self
.
iperf_packetloss_threshold
+
'%'
else
:
pal_too_high_msg
=
'Packet Loss value is within acceptance range'
#checking bitrate perf compliance
if
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
):
bit_too_low_msg
=
'Bitrate too low :
actual
= '
+
bitperf
+
', target = '
+
self
.
iperf_bitrate_threshold
+
'%'
bit_too_low_msg
=
'Bitrate too low :
tested
= '
+
bitperf
+
', target = '
+
self
.
iperf_bitrate_threshold
+
'%'
else
:
bit_too_low_msg
=
'Bitrate perf value is within acceptance range'
lock
.
acquire
()
...
...
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