Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sneltved
openairinterface5G
Commits
f83c92d7
Commit
f83c92d7
authored
Mar 08, 2019
by
Raphael Defosseux
Browse files
CI: add a procedure to reset B2xx boards before running
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
52cc57fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
ci-scripts/main.py
View file @
f83c92d7
...
...
@@ -408,6 +408,11 @@ class SSHConnection():
self
.
command
(
'echo $USER; nohup sudo tshark -f "host '
+
self
.
eNBIPAddress
+
'" -i '
+
eth_interface
+
' -w /tmp/enb_'
+
self
.
testCase_id
+
'_s1log.pcap > /tmp/tshark.log 2>&1 &'
,
self
.
EPCUserName
,
5
)
self
.
close
()
self
.
open
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
5
)
result
=
re
.
search
(
'type: b200'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
logging
.
debug
(
'Found a B2xx device --> resetting it'
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S sudo b2xx_fx3_utils --reset-device'
,
'\$'
,
5
)
self
.
command
(
'cd '
+
self
.
eNBSourceCodePath
,
'\$'
,
5
)
# Initialize_eNB_args usually start with -O and followed by the location in repository
full_config_file
=
self
.
Initialize_eNB_args
.
replace
(
'-O '
,
''
)
...
...
ci-scripts/xml_files/enb_usrp210_band40_test_05mhz_tm1.xml
View file @
f83c92d7
...
...
@@ -65,7 +65,7 @@
<class>
Ping
</class>
<desc>
ping (5MHz - 20 sec)
</desc>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
2
5
</ping_packetloss_threshold>
<ping_packetloss_threshold>
5
0
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"040601"
>
...
...
ci-scripts/xml_files/if4p5_usrp210_band40_test_05mhz.xml
View file @
f83c92d7
...
...
@@ -81,7 +81,7 @@
<class>
Ping
</class>
<desc>
ping (5MHz - 20 sec)
</desc>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
2
5
</ping_packetloss_threshold>
<ping_packetloss_threshold>
5
0
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"040602"
>
...
...
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