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
wangjie
OpenXG-RAN
Commits
2c2d8bbf
Commit
2c2d8bbf
authored
Jun 09, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing tshark termination ; zip of QLog file
parent
688cb7ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ci-scripts/cls_module_ue.py
ci-scripts/cls_module_ue.py
+3
-3
ci-scripts/ran.py
ci-scripts/ran.py
+4
-0
No files found.
ci-scripts/cls_module_ue.py
View file @
2c2d8bbf
...
...
@@ -154,9 +154,9 @@ class Module_UE:
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"
)
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
,
'\$'
,
2
0
)
destination
=
'/opt/ci_qlogs/ci_qlog_'
+
now_string
+
'.zip'
mySSH
.
command
(
'echo
$USER; echo '
+
self
.
HostPassword
+
' | nohup sudo -S zip -r '
+
destination
+
' '
+
source
+
' &'
,
'\$'
,
1
0
)
mySSH
.
close
()
return
destination
ci-scripts/ran.py
View file @
2c2d8bbf
...
...
@@ -594,6 +594,10 @@ class RANManagement():
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S killall --signal SIGKILL -r .*-softmodem ocp-enb || true'
,
'\$'
,
5
)
time
.
sleep
(
5
)
mySSH
.
command
(
'rm -f my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
#stopping tshark on eNB side
logging
.
debug
(
'
\u001B
[1m Stopping tshark
\u001B
[0m'
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S killall --signal SIGKILL tshark'
,
'\$'
,
5
)
time
.
sleep
(
1
)
mySSH
.
close
()
# If tracer options is on, stopping tshark on EPC side
result
=
re
.
search
(
'T_stdout'
,
str
(
self
.
Initialize_eNB_args
))
...
...
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