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
zzha zzha
OpenXG-RAN
Commits
ab3d6e73
Commit
ab3d6e73
authored
Oct 04, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify physim1 log copy (while doing the same)
parent
8d9a36e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+4
-15
No files found.
ci-scripts/cls_physim1.py
View file @
ab3d6e73
...
@@ -250,22 +250,11 @@ class PhySim:
...
@@ -250,22 +250,11 @@ class PhySim:
logging
.
error
(
'
\u001B
[1m Physical Simulator Fail
\u001B
[0m'
)
logging
.
error
(
'
\u001B
[1m Physical Simulator Fail
\u001B
[0m'
)
def
AnalyzeLogFile_phySim
(
self
):
def
AnalyzeLogFile_phySim
(
self
):
lIpAddr
=
self
.
eNBIPAddress
lUserName
=
self
.
eNBUserName
lPassWord
=
self
.
eNBPassword
lSourcePath
=
self
.
eNBSourceCodePath
mySSH
=
SSH
.
SSHConnection
()
mySSH
=
SSH
.
SSHConnection
()
mySSH
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
mySSH
.
open
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
)
mySSH
.
command
(
'cd '
+
lSourcePath
,
'\$'
,
5
)
dirToCopy
=
f'
{
self
.
eNBSourceCodePath
}
/cmake_targets/log/'
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
mySSH
.
copyin
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
,
dirToCopy
,
f'./physim_test_logs_
{
self
.
testCase_id
}
/'
)
mySSH
.
command
(
'mkdir -p physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
f'rm -rf
{
dirToCopy
}
'
,
'\$'
,
5
)
mySSH
.
command
(
'cp log/physim_* '
+
'physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'tar cvf physim_test_log_'
+
self
.
testCase_id
+
'/physim_log.tar log/*'
,
'\$'
,
180
)
mySSH
.
command
(
'rm -rf log/*'
,
'\$'
,
5
)
if
not
os
.
path
.
exists
(
f'./physim_test_logs_
{
self
.
testCase_id
}
'
):
os
.
mkdir
(
f'./physim_test_logs_
{
self
.
testCase_id
}
'
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/physim_test_log_'
+
self
.
testCase_id
+
'/*'
,
'./physim_test_logs_'
+
self
.
testCase_id
)
mySSH
.
command
(
'rm -rf ./physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
close
()
mySSH
.
close
()
# physim test log analysis
# physim test log analysis
nextt
=
0
nextt
=
0
...
...
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