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
29e9fc26
Commit
29e9fc26
authored
Oct 04, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tentative to fix capture of stat files
parent
596c6f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
ci-scripts/ran.py
ci-scripts/ran.py
+20
-12
No files found.
ci-scripts/ran.py
View file @
29e9fc26
...
...
@@ -466,6 +466,18 @@ class RANManagement():
mySSH
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S rm -Rf enb_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; nohup sudo -E ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh > '
+
lSourcePath
+
'/cmake_targets/enb_'
+
self
.
testCase_id
+
'.log 2>&1 &'
,
lUserName
,
10
)
#tentative
time
.
sleep
(
20
)
if
self
.
eNB_Stats
==
'yes'
:
monitor_file
=
'stats_monitor.py'
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S cp '
+
self
.
eNBSourceCodePath
+
'/ci-scripts/'
+
monitor_file
+
' '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/ran_build/build/.'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; nohup python3 '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/ran_build/build/'
+
monitor_file
+
' 2>&1 &'
,
'\$'
,
5
)
self
.
eNBLogFiles
[
int
(
self
.
eNB_instance
)]
=
'enb_'
+
self
.
testCase_id
+
'.log'
if
extra_options
!=
''
:
self
.
eNBOptions
[
int
(
self
.
eNB_instance
)]
=
extra_options
...
...
@@ -543,18 +555,14 @@ class RANManagement():
#if enabled in the xml,
#copyout the monitor script and launch it
if
self
.
eNB_Stats
==
'yes'
:
mySSH
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
monitor_file
=
'stats_monitor.py'
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S cp '
+
self
.
eNBSourceCodePath
+
'/ci-scripts/'
+
monitor_file
+
' '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/ran_build/build/.'
,
'\$'
,
5
)
#launch, it will stop when the softmodem stops
mySSH
.
command
(
'echo $USER; nohup python3 '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/ran_build/build/'
+
monitor_file
+
' 2>&1 &'
,
'\$'
,
5
)
mySSH
.
close
()
#copyout the monitor script and launch itg
# if self.eNB_Stats=='yes':
# mySSH.open(lIpAddr, lUserName, lPassWord)
# monitor_file='stats_monitor.py'
# mySSH.command('echo ' + lPassWord + ' | sudo -S cp ' + self.eNBSourceCodePath + '/ci-scripts/'+ monitor_file + ' ' + self.eNBSourceCodePath + '/cmake_targets/ran_build/build/.','\$', 5)
# #launch, it will stop when the softmodem stops
# mySSH.command('echo $USER; nohup python3 ' + self.eNBSourceCodePath + '/cmake_targets/ran_build/build/' + monitor_file + ' 2>&1 &', '\$', 5)
# mySSH.close()
HTML
.
CreateHtmlTestRow
(
self
.
air_interface
[
self
.
eNB_instance
]
+
' -O '
+
config_file
+
extra_options
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
...
...
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