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
688cb7ae
Commit
688cb7ae
authored
Jun 09, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qlog archive mgt
parent
19f5c7ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
ci-scripts/cls_module_ue.py
ci-scripts/cls_module_ue.py
+12
-1
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+4
-2
No files found.
ci-scripts/cls_module_ue.py
View file @
688cb7ae
...
...
@@ -37,7 +37,7 @@ import time
import
re
import
subprocess
from
datetime
import
datetime
class
Module_UE
:
...
...
@@ -149,3 +149,14 @@ class Module_UE:
mySSH
.
close
()
def
LogCollect
(
self
):
mySSH
=
sshconnection
.
SSHConnection
()
mySSH
.
open
(
self
.
HostIPAddress
,
self
.
HostUsername
,
self
.
HostPassword
)
#archive qlog to /opt/ci_qlogs with datetime suffix
now
=
datetime
.
now
()
now_string
=
now
.
strftime
(
"%Y/%m/%d-%H:%M"
)
source
=
'ci_qlog'
destination
=
'/opt/ci_qlogs/ci_qlog_'
+
now_string
mySSH
.
command
(
'echo '
+
self
.
HostPassword
+
' | sudo -S cp -r '
+
source
+
' '
+
destination
,
'\$'
,
20
)
mySSH
.
close
()
return
destination
ci-scripts/cls_oaicitest.py
View file @
688cb7ae
...
...
@@ -1086,7 +1086,8 @@ class OaiCiTest():
Module_UE
.
Command
(
"detach"
)
Module_UE
.
DisableTrace
()
Module_UE
.
DisableCM
()
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
archive_destination
=
Module_UE
.
LogCollect
()
HTML
.
CreateHtmlTestRow
(
'QLog at : '
+
archive_destination
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
...
...
@@ -3155,7 +3156,8 @@ class OaiCiTest():
Module_UE
.
Command
(
"detach"
)
Module_UE
.
DisableTrace
()
Module_UE
.
DisableCM
()
archive_destination
=
Module_UE
.
LogCollect
()
HTML
.
CreateHtmlTestRow
(
'QLog at : '
+
archive_destination
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
if
(
self
.
ADBIPAddress
!=
'none'
):
self
.
testCase_id
=
'AUTO-KILL-UE'
HTML
.
testCase_id
=
self
.
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