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
常顺宇
OpenXG-RAN
Commits
7ca88722
Commit
7ca88722
authored
Apr 29, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test status fail/pass + test update + cleaning
parent
37cc4d60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
ci-scripts/ran.py
ci-scripts/ran.py
+7
-14
ci-scripts/xml_files/gnb_phytest_usrp_run.xml
ci-scripts/xml_files/gnb_phytest_usrp_run.xml
+2
-2
No files found.
ci-scripts/ran.py
View file @
7ca88722
...
...
@@ -940,18 +940,6 @@ class RANManagement():
logging
.
debug
(
dlsch_ulsch_stats
[
key
])
htmleNBFailureMsg
+=
statMsg
#real time statistics (old but working version)
#if len(real_time_stats)!=0: #check if dictionary is not empty
# statMsg=''
# for k in real_time_stats:
# tmp=re.match(r'^(?P<metric>.*):\s+(?P<avg>\d+\.\d+) us;\s+\d+;\s+(?P<max>\d+\.\d+) us;',real_time_stats[k])
# if tmp is not None:
# metric=tmp.group('metric')
# avg=tmp.group('avg')
# max=tmp.group('max')
# statMsg += metric + ' : avg = ' + avg + 'us ; max = ' + max +'us\n'
# htmleNBFailureMsg += statMsg
#real time statistics
datalog_rt_stats
[
'Data'
]
=
{}
if
len
(
real_time_stats
)
!=
0
:
#check if dictionary is not empty
...
...
@@ -962,8 +950,13 @@ class RANManagement():
avg
=
float
(
tmp
.
group
(
'avg'
))
max
=
float
(
tmp
.
group
(
'max'
))
datalog_rt_stats
[
'Data'
][
metric
]
=
[
"{:.0f}"
.
format
(
avg
),
"{:.0f}"
.
format
(
max
),
"{:.2f}"
.
format
(
avg
/
datalog_rt_stats
[
'Ref'
][
metric
])]
#store the data as a class attribute to build a dedicated HTML table afterward
self
.
datalog_rt_stats
=
datalog_rt_stats
#once all metrics are collected, store the data as a class attribute to build a dedicated HTML table afterward
self
.
datalog_rt_stats
=
datalog_rt_stats
#check if there is a fail => will render the test as failed
for
k
in
datalog_rt_stats
[
'Data'
]:
if
float
(
datalog_rt_stats
[
'Data'
][
k
][
2
])
>
datalog_rt_stats
[
'Threshold'
][
k
]:
#condition for fail : avg/ref is greater than the fixed threshold
#setting prematureExit is ok although not the best option
self
.
prematureExit
=
True
else
:
statMsg
=
'No real time stats found in the log file
\n
'
logging
.
debug
(
'No real time stats found in the log file'
)
...
...
ci-scripts/xml_files/gnb_phytest_usrp_run.xml
View file @
7ca88722
...
...
@@ -24,7 +24,7 @@
<htmlTabRef>
gNB-PHY-Test
</htmlTabRef>
<htmlTabName>
Run-gNB-PHY-Test
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<repeatCount>
2
</repeatCount>
<repeatCount>
3
</repeatCount>
<TestCaseRequestedList>
090101 000001 090109
</TestCaseRequestedList>
...
...
@@ -40,7 +40,7 @@
<testCase
id=
"000001"
>
<class>
IdleSleep
</class>
<desc>
Sleep
</desc>
<idle_sleep_time_in_sec>
18
0
</idle_sleep_time_in_sec>
<idle_sleep_time_in_sec>
30
0
</idle_sleep_time_in_sec>
</testCase>
...
...
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