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
ZhouShuya
OpenXG-RAN
Commits
b760012a
Commit
b760012a
authored
Oct 18, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix in looping attach / ping / detach
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
6b52ac7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
50 deletions
+60
-50
ci-scripts/main.py
ci-scripts/main.py
+15
-9
ci-scripts/xml_files/inria/enb_ue_usrp210_band7_test_05mhz_tm1_nos1.xml
..._files/inria/enb_ue_usrp210_band7_test_05mhz_tm1_nos1.xml
+1
-1
ci-scripts/xml_files/inria/enb_usrp210_band7_test_05mhz_tm1.xml
...ipts/xml_files/inria/enb_usrp210_band7_test_05mhz_tm1.xml
+44
-40
No files found.
ci-scripts/main.py
View file @
b760012a
...
...
@@ -879,20 +879,26 @@ class SSHConnection():
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
if
not
self
.
ADBCentralized
:
# Reboot UE
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
' '
+
self
.
UEDevicesRebootCmd
[
idx
],
'\$'
,
60
)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' ' + self.UEDevicesRebootCmd[idx], '\$', 60)
# Wait
time
.
sleep
(
60
)
#
time.sleep(60)
# Put in LTE-Mode only
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "settings put global preferred_network_mode 11"
\'
'
,
'\$'
,
60
)
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "settings put global preferred_network_mode1 11"
\'
'
,
'\$'
,
60
)
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "settings put global preferred_network_mode2 11"
\'
'
,
'\$'
,
60
)
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "settings put global preferred_network_mode3 11"
\'
'
,
'\$'
,
60
)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "settings put global preferred_network_mode 11"\'', '\$', 60)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "settings put global preferred_network_mode1 11"\'', '\$', 60)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "settings put global preferred_network_mode2 11"\'', '\$', 60)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "settings put global preferred_network_mode3 11"\'', '\$', 60)
# enable data service
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "svc data enable"
\'
'
,
'\$'
,
60
)
#
self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' \'adb -s ' + device_id + ' shell "svc data enable"\'', '\$', 60)
# we need to do radio on/off cycle to make sure of above changes
# airplane mode off // radio on
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
' '
+
self
.
UEDevicesOnCmd
[
idx
],
'\$'
,
60
)
time
.
sleep
(
10
)
#self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' ' + self.UEDevicesOnCmd[idx], '\$', 60)
#time.sleep(10)
# airplane mode on // radio off
#self.command('ssh ' + self.UEDevicesRemoteUser[idx] + '@' + self.UEDevicesRemoteServer[idx] + ' ' + self.UEDevicesOffCmd[idx], '\$', 60)
# normal procedure without reboot
# enable data service
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "svc data enable"
\'
'
,
'\$'
,
60
)
# airplane mode on // radio off
self
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
' '
+
self
.
UEDevicesOffCmd
[
idx
],
'\$'
,
60
)
self
.
close
()
...
...
ci-scripts/xml_files/inria/enb_ue_usrp210_band7_test_05mhz_tm1_nos1.xml
View file @
b760012a
...
...
@@ -24,7 +24,7 @@
<htmlTabRef>
test-05-tm1-nos1-tunnel
</htmlTabRef>
<htmlTabName>
Test-05MHz-TM1-noS1-tunnel
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<repeatCount>
2
</repeatCount>
<repeatCount>
4
</repeatCount>
<TestCaseRequestedList>
030201 090109
030101 000001 090101 000002 040501 040502 000001 040601 040602 040641 040642 000001 090109 030201
...
...
ci-scripts/xml_files/inria/enb_usrp210_band7_test_05mhz_tm1.xml
View file @
b760012a
...
...
@@ -19,7 +19,6 @@
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
030103 000002 040301 000002 040504 040605 040606 040645 040646 000001 040401 000002 030201
-->
<testCaseList>
<htmlTabRef>
test-05-tm1
</htmlTabRef>
...
...
@@ -28,44 +27,44 @@
<repeatCount>
4
</repeatCount>
<TestCaseRequestedList>
030201 040101
030103 000002
040301
0
00002 040504 0000
01
0
00002 040505 0000
01
0
00002 040506 0000
01
0
00002 040507 0000
01
0
00002 040508 0000
01
0
00002 040509 0000
01
0
00002 040510 0000
01
0
00002 040511 0000
01
0
00002 040512 0000
01
0
00002 040513 0000
01
0
00002 040514 0000
01
0
00002 040515 0000
01
0
00002 040516 0000
01
0
00002 040517 0000
01
0
00002 040518 0000
01
0
00002 040519 0000
01
0
00002 040520 0000
01
0
00002 040521 0000
01
0
00002 040522 0000
01
0
00002 040523 0000
01
0
00002 040524 0000
01
0
00002 040525 0000
01
0
00002 040526 0000
01
0
00002 040527 0000
01
0
00002 040528 0000
01
0
00002 040529 0000
01
0
00002 040530 0000
01
0
00002 040531 0000
01
0
00002 040532 0000
01
0
00002 040533 0000
01
0
00002 040534 0000
01
0
00002 040535 0000
01
0
00002 040536 0000
01
0
00002 040537 0000
01
0
00002 040538 0000
01
0
00002 040539 0000
01
040
4
01 000002 030201
030103 000002
0
40301 000002 040504 000001 0404
01
0
40301 000002 040505 000001 0404
01
0
40301 000002 040506 000001 0404
01
0
40301 000002 040507 000001 0404
01
0
40301 000002 040508 000001 0404
01
0
40301 000002 040509 000001 0404
01
0
40301 000002 040510 000001 0404
01
0
40301 000002 040511 000001 0404
01
0
40301 000002 040512 000001 0404
01
0
40301 000002 040513 000001 0404
01
0
40301 000002 040514 000001 0404
01
0
40301 000002 040515 000001 0404
01
0
40301 000002 040516 000001 0404
01
0
40301 000002 040517 000001 0404
01
0
40301 000002 040518 000001 0404
01
0
40301 000002 040519 000001 0404
01
0
40301 000002 040520 000001 0404
01
0
40301 000002 040521 000001 0404
01
0
40301 000002 040522 000001 0404
01
0
40301 000002 040523 000001 0404
01
0
40301 000002 040524 000001 0404
01
0
40301 000002 040525 000001 0404
01
0
40301 000002 040526 000001 0404
01
0
40301 000002 040527 000001 0404
01
0
40301 000002 040528 000001 0404
01
0
40301 000002 040529 000001 0404
01
0
40301 000002 040530 000001 0404
01
0
40301 000002 040531 000001 0404
01
0
40301 000002 040532 000001 0404
01
0
40301 000002 040533 000001 0404
01
0
40301 000002 040534 000001 0404
01
0
40301 000002 040535 000001 0404
01
0
40301 000002 040536 000001 0404
01
0
40301 000002 040537 000001 0404
01
0
40301 000002 040538 000001 0404
01
0
40301 000002 040539 000001 0404
01
040
2
01 000002 030201
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
...
...
@@ -74,6 +73,11 @@
<desc>
Initialize UE
</desc>
</testCase>
<testCase
id=
"040201"
>
<class>
Terminate_UE
</class>
<desc>
Terminate UE
</desc>
</testCase>
<testCase
id=
"000001"
>
<class>
IdleSleep
</class>
<desc>
Sleep for 10 sec
</desc>
...
...
@@ -86,7 +90,7 @@
<idle_sleep_time_in_sec>
3
</idle_sleep_time_in_sec>
</testCase>
<testCase
id=
"03010
2
"
>
<testCase
id=
"03010
3
"
>
<class>
Initialize_eNB
</class>
<desc>
Initialize eNB (FDD/Band7/5MHz)
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/enb.band7.tm1.25PRB.usrpb210.conf --eNBs.[0].rrc_inactivity_threshold 0 --RUs.[0].max_rxgain 120 --eNBs.[0].component_carriers.[0].pusch_p0_Nominal -90 --eNBs.[0].component_carriers.[0].pucch_p0_Nominal -96 --eNBs.[0].tracking_area_code 600 --eNBs.[0].plmn_list.[0].mnc 95 --THREAD_STRUCT.[0].parallel_config PARALLEL_RU_L1_TRX_SPLIT
</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