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
wangwenhui
OpenXG-RAN
Commits
c256c2e8
Commit
c256c2e8
authored
May 02, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix.
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
d330867d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
ci-scripts/main.py
ci-scripts/main.py
+4
-9
No files found.
ci-scripts/main.py
View file @
c256c2e8
...
...
@@ -1972,7 +1972,7 @@ class SSHConnection():
try
:
self
.
open
(
self
.
OAIUEIPAddress
,
self
.
OAIUEUserName
,
self
.
OAIUEPassword
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -v grep | grep --color=never '
+
self
.
air_interface
+
'-uesoftmodem'
,
'\$'
,
5
)
result
=
re
.
search
(
air_interface
+
'-uesoftmodem'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
self
.
air_interface
+
'-uesoftmodem'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
logging
.
debug
(
'
\u001B
[1;37;41m OAI UE Process Not Found!
\u001B
[0m'
)
status_queue
.
put
(
OAI_UE_PROCESS_FAILED
)
...
...
@@ -1986,7 +1986,7 @@ class SSHConnection():
try
:
self
.
open
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -v grep | grep --color=never '
+
self
.
air_interface
+
'-softmodem'
,
'\$'
,
5
)
result
=
re
.
search
(
air_interface
+
'-softmodem'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
self
.
air_interface
+
'-softmodem'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
logging
.
debug
(
'
\u001B
[1;37;41m eNB Process Not Found!
\u001B
[0m'
)
status_queue
.
put
(
ENB_PROCESS_FAILED
)
...
...
@@ -2364,7 +2364,7 @@ class SSHConnection():
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S killall --signal SIGINT '
+
self
.
air_interface
+
'-softmodem || true'
,
'\$'
,
5
)
time
.
sleep
(
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -v grep | grep '
+
self
.
air_interface
+
'-softmodem'
,
'\$'
,
5
)
result
=
re
.
search
(
air_interface
+
'-softmodem'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
self
.
air_interface
+
'-softmodem'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S killall --signal SIGKILL '
+
self
.
air_interface
+
'-softmodem || true'
,
'\$'
,
5
)
time
.
sleep
(
5
)
...
...
@@ -2512,7 +2512,7 @@ class SSHConnection():
self
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S killall --signal SIGINT '
+
self
.
air_interface
+
'-uesoftmodem || true'
,
'\$'
,
5
)
time
.
sleep
(
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -v grep | grep '
+
self
.
air_interface
+
'-uesoftmodem'
,
'\$'
,
5
)
result
=
re
.
search
(
air_interface
+
'-uesoftmodem'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
self
.
air_interface
+
'-uesoftmodem'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S killall --signal SIGKILL '
+
self
.
air_interface
+
'-uesoftmodem || true'
,
'\$'
,
5
)
time
.
sleep
(
5
)
...
...
@@ -3144,11 +3144,6 @@ def GetParametersFromXML(action):
SSH
.
eNB_instance
=
test
.
findtext
(
'UE_instance'
)
if
(
SSH
.
UE_instance
is
None
):
SSH
.
UE_instance
=
'0'
SSH
.
air_interface
=
test
.
findtext
(
'air_interface'
)
if
(
SSH
.
air_interface
is
None
):
SSH
.
air_interface
=
'lte'
else
:
SSH
.
air_interface
=
SSH
.
air_interface
.
lower
()
if
action
==
'Ping'
or
action
==
'Ping_CatM_module'
:
SSH
.
ping_args
=
test
.
findtext
(
'ping_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