Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
11a78e2d
Commit
11a78e2d
authored
Nov 09, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): increased some timeout values
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
88b65c59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+3
-3
ci-scripts/ran.py
ci-scripts/ran.py
+2
-2
ci-scripts/sshconnection.py
ci-scripts/sshconnection.py
+2
-1
No files found.
ci-scripts/cls_oaicitest.py
View file @
11a78e2d
...
@@ -451,13 +451,13 @@ class OaiCiTest():
...
@@ -451,13 +451,13 @@ class OaiCiTest():
SSH
=
sshconnection
.
SSHConnection
()
SSH
=
sshconnection
.
SSHConnection
()
SSH
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
SSH
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
# b2xx_fx3_utils reset procedure
# b2xx_fx3_utils reset procedure
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
9
0
)
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
18
0
)
result
=
re
.
search
(
'type: b200'
,
SSH
.
getBefore
())
result
=
re
.
search
(
'type: b200'
,
SSH
.
getBefore
())
if
result
is
not
None
:
if
result
is
not
None
:
logging
.
debug
(
'Found a B2xx device --> resetting it'
)
logging
.
debug
(
'Found a B2xx device --> resetting it'
)
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S b2xx_fx3_utils --reset-device'
,
'\$'
,
10
)
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S b2xx_fx3_utils --reset-device'
,
'\$'
,
10
)
# Reloading FGPA bin firmware
# Reloading FGPA bin firmware
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
9
0
)
SSH
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
18
0
)
result
=
re
.
search
(
'type: n3xx'
,
str
(
SSH
.
getBefore
()))
result
=
re
.
search
(
'type: n3xx'
,
str
(
SSH
.
getBefore
()))
if
result
is
not
None
:
if
result
is
not
None
:
logging
.
debug
(
'Found a N3xx device --> resetting it'
)
logging
.
debug
(
'Found a N3xx device --> resetting it'
)
...
@@ -3601,7 +3601,7 @@ class OaiCiTest():
...
@@ -3601,7 +3601,7 @@ class OaiCiTest():
UhdVersion
=
result
.
group
(
'uhd_version'
)
UhdVersion
=
result
.
group
(
'uhd_version'
)
logging
.
debug
(
'UHD Version is: '
+
UhdVersion
)
logging
.
debug
(
'UHD Version is: '
+
UhdVersion
)
HTML
.
UhdVersion
[
idx
]
=
UhdVersion
HTML
.
UhdVersion
[
idx
]
=
UhdVersion
SSH
.
command
(
'echo '
+
Password
+
' | sudo -S uhd_find_devices'
,
'\$'
,
9
0
)
SSH
.
command
(
'echo '
+
Password
+
' | sudo -S uhd_find_devices'
,
'\$'
,
18
0
)
usrp_boards
=
re
.
findall
(
'product: ([0-9A-Za-z]+)
\\\\
r
\\\\
n'
,
SSH
.
getBefore
())
usrp_boards
=
re
.
findall
(
'product: ([0-9A-Za-z]+)
\\\\
r
\\\\
n'
,
SSH
.
getBefore
())
count
=
0
count
=
0
for
board
in
usrp_boards
:
for
board
in
usrp_boards
:
...
...
ci-scripts/ran.py
View file @
11a78e2d
...
@@ -423,13 +423,13 @@ class RANManagement():
...
@@ -423,13 +423,13 @@ class RANManagement():
# do not reset board twice in IF4.5 case
# do not reset board twice in IF4.5 case
result
=
re
.
search
(
'^rru|^enb|^du.band'
,
str
(
config_file
))
result
=
re
.
search
(
'^rru|^enb|^du.band'
,
str
(
config_file
))
if
result
is
not
None
:
if
result
is
not
None
:
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S uhd_find_devices'
,
'\$'
,
9
0
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S uhd_find_devices'
,
'\$'
,
18
0
)
result
=
re
.
search
(
'type: b200'
,
mySSH
.
getBefore
())
result
=
re
.
search
(
'type: b200'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
if
result
is
not
None
:
logging
.
debug
(
'Found a B2xx device --> resetting it'
)
logging
.
debug
(
'Found a B2xx device --> resetting it'
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S b2xx_fx3_utils --reset-device'
,
'\$'
,
10
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S b2xx_fx3_utils --reset-device'
,
'\$'
,
10
)
# Reloading FGPA bin firmware
# Reloading FGPA bin firmware
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S uhd_find_devices'
,
'\$'
,
9
0
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S uhd_find_devices'
,
'\$'
,
18
0
)
# Make a copy and adapt to EPC / eNB IP addresses
# Make a copy and adapt to EPC / eNB IP addresses
mySSH
.
command
(
'cp '
+
full_config_file
+
' '
+
ci_full_config_file
,
'\$'
,
5
)
mySSH
.
command
(
'cp '
+
full_config_file
+
' '
+
ci_full_config_file
,
'\$'
,
5
)
localMmeIpAddr
=
EPC
.
MmeIPAddress
localMmeIpAddr
=
EPC
.
MmeIPAddress
...
...
ci-scripts/sshconnection.py
View file @
11a78e2d
...
@@ -60,7 +60,8 @@ class SSHConnection():
...
@@ -60,7 +60,8 @@ class SSHConnection():
connect_status
=
False
connect_status
=
False
while
count
<
4
:
while
count
<
4
:
self
.
ssh
=
pexpect
.
spawn
(
'ssh -o PubkeyAuthentication=no {}@{}'
.
format
(
username
,
ipaddress
))
self
.
ssh
=
pexpect
.
spawn
(
'ssh -o PubkeyAuthentication=no {}@{}'
.
format
(
username
,
ipaddress
))
self
.
ssh
.
timeout
=
5
# Longer timeout at connection due to asterix slowness
self
.
ssh
.
timeout
=
25
self
.
sshresponse
=
self
.
ssh
.
expect
([
'Are you sure you want to continue connecting (yes/no)?'
,
'password:'
,
'Last login'
,
pexpect
.
EOF
,
pexpect
.
TIMEOUT
])
self
.
sshresponse
=
self
.
ssh
.
expect
([
'Are you sure you want to continue connecting (yes/no)?'
,
'password:'
,
'Last login'
,
pexpect
.
EOF
,
pexpect
.
TIMEOUT
])
if
self
.
sshresponse
==
0
:
if
self
.
sshresponse
==
0
:
self
.
ssh
.
sendline
(
'yes'
)
self
.
ssh
.
sendline
(
'yes'
)
...
...
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