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
Michael Black
OpenXG-RAN
Commits
c26d6fd6
Commit
c26d6fd6
authored
Jan 03, 2022
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test status depending on results ; cosmetic fix on assertions text
parent
478f67e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+7
-7
No files found.
ci-scripts/cls_oaicitest.py
View file @
c26d6fd6
...
@@ -2088,19 +2088,19 @@ class OaiCiTest():
...
@@ -2088,19 +2088,19 @@ class OaiCiTest():
packetloss
+=
'%'
packetloss
+=
'%'
#checking packet loss compliance
#checking packet loss compliance
if
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
):
if
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
):
pal_too_high_msg
=
'Packet Loss too high : actual = '
+
packetloss
+
', target = '
+
self
.
iperf_packetloss_threshold
+
'%
\n
'
pal_too_high_msg
=
'Packet Loss too high : actual = '
+
packetloss
+
', target = '
+
self
.
iperf_packetloss_threshold
+
'%'
else
:
else
:
pal_too_high_msg
=
''
pal_too_high_msg
=
'
Packet Loss value is within acceptance range
'
#checking bitrate perf compliance
#checking bitrate perf compliance
if
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
):
if
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
):
bit_too_low_msg
=
'Bitrate too low : actual = '
+
bitperf
+
', target = '
+
self
.
iperf_bitrate_threshold
+
'%
\n
'
bit_too_low_msg
=
'Bitrate too low : actual = '
+
bitperf
+
', target = '
+
self
.
iperf_bitrate_threshold
+
'%'
else
:
else
:
bit_too_low_msg
=
''
bit_too_low_msg
=
'
Bitrate perf value is within acceptance range
'
lock
.
acquire
()
lock
.
acquire
()
if
(
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
))
or
(
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
)):
if
(
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
))
and
(
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
)):
statusQueue
.
put
(
1
)
elif
(
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
))
and
(
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
)):
statusQueue
.
put
(
-
1
)
statusQueue
.
put
(
-
1
)
elif
(
float
(
br_loss
)
<
float
(
self
.
iperf_bitrate_threshold
))
or
(
float
(
pl
)
>
float
(
self
.
iperf_packetloss_threshold
)):
statusQueue
.
put
(
1
)
else
:
else
:
statusQueue
.
put
(
0
)
statusQueue
.
put
(
0
)
statusQueue
.
put
(
device_id
)
statusQueue
.
put
(
device_id
)
...
...
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