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
lizhongxiao
OpenXG-RAN
Commits
c0bafbd3
Commit
c0bafbd3
authored
Jan 30, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification of function for checking offload results
parent
ceb1b9fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
ci-scripts/cls_physim.py
ci-scripts/cls_physim.py
+18
-7
No files found.
ci-scripts/cls_physim.py
View file @
c0bafbd3
...
...
@@ -85,7 +85,7 @@ class PhySim:
HTML
.
CreateHtmlTestRowQueue
(
self
.
runargs
,
'OK'
,
[
info
])
return
HTML
def
__CheckResults_LDPCt
1
Test
(
self
,
HTML
,
CONST
,
testcase_id
):
def
__CheckResults_LDPCt
2
Test
(
self
,
HTML
,
CONST
,
testcase_id
):
thrs_NOK
=
500
thrs_KO
=
1000
mySSH
=
sshconnection
.
SSHConnection
()
...
...
@@ -94,21 +94,32 @@ class PhySim:
mySSH
.
copyin
(
self
.
eNBIpAddr
,
self
.
eNBUserName
,
self
.
eNBPassWord
,
self
.
__workSpacePath
+
self
.
__runLogFile
,
'.'
)
mySSH
.
close
()
#parse results looking for Decoding values
runResultsT1
=
[]
runResultsT2
=
[]
decTest
=
False
encTest
=
False
with
open
(
self
.
__runLogFile
)
as
g
:
for
line
in
g
:
if
'decoding time'
in
line
:
runResultsT1
.
append
(
line
)
runResultsT2
.
append
(
line
)
decTest
=
True
break
if
'encoding time'
in
line
:
runResultsT2
.
append
(
line
)
encTest
=
True
break
# In case the T
1
board does work properly, there is no statistics
if
len
(
runResultsT
1
)
==
0
:
# In case the T
2
board does work properly, there is no statistics
if
len
(
runResultsT
2
)
==
0
:
logging
.
error
(
'no statistics'
)
HTML
.
CreateHtmlTestRowQueue
(
self
.
runargs
,
'KO'
,
[
'no statistics'
])
self
.
exitStatus
=
1
os
.
system
(
'mv '
+
self
.
__runLogFile
+
' '
+
self
.
__runLogPath
+
'/.'
)
return
HTML
info
=
runResultsT1
[
0
][
15
:
-
13
]
if
decTest
:
info
=
runResultsT2
[
0
][
15
:
-
13
]
if
encTest
:
info
=
runResultsT2
[
0
][
13
:
-
13
]
result
=
int
(
''
.
join
(
filter
(
str
.
isdigit
,
info
)))
/
100
#once parsed move the local logfile to its folder for tidiness
os
.
system
(
'mv '
+
self
.
__runLogFile
+
' '
+
self
.
__runLogPath
+
'/.'
)
...
...
@@ -261,7 +272,7 @@ class PhySim:
mySSH
.
close
()
#return updated HTML to main
lHTML
=
cls_oai_html
.
HTMLManagement
()
lHTML
=
self
.
__CheckResults_LDPCt
1
Test
(
htmlObj
,
constObj
,
testcase_id
)
lHTML
=
self
.
__CheckResults_LDPCt
2
Test
(
htmlObj
,
constObj
,
testcase_id
)
return
lHTML
def
Run_NRulsimTest
(
self
,
htmlObj
,
constObj
,
testcase_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