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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
72d5cec7
Commit
72d5cec7
authored
Apr 16, 2021
by
Mohammed Ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: log fix
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
c55e253f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+3
-2
No files found.
ci-scripts/cls_physim1.py
View file @
72d5cec7
...
...
@@ -198,11 +198,11 @@ class PhySim:
isFinished
=
False
while
(
count
<
26
and
isFinished
==
False
):
time
.
sleep
(
60
)
mySSH
.
command
(
'oc get pods -l app.kubernetes.io/instance=physim'
,
'\$'
,
6
)
mySSH
.
command
(
'oc get pods -l app.kubernetes.io/instance=physim
| grep dlsim
'
,
'\$'
,
6
)
result
=
re
.
search
(
'oai-nr-dlsim[\S\d\w]+'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
podName1
=
result
.
group
()
mySSH
.
command
(
f'oc logs
{
podName1
}
| tail -n 5
'
,
'\$'
,
6
)
mySSH
.
command
(
f'oc logs
{
podName1
}
2>&1 | tail -n 1
'
,
'\$'
,
6
)
if
mySSH
.
getBefore
().
count
(
'Finished'
)
!=
0
:
isFinished
=
True
count
+=
1
...
...
@@ -212,6 +212,7 @@ class PhySim:
# Getting the logs of each executables running in individual pods
for
podName
in
podNames
:
mySSH
.
command
(
f'oc logs
{
podName
}
>> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
6
)
time
.
sleep
(
30
)
# UnDeploy the physical simulator pods
mySSH
.
command
(
'helm uninstall physim | tee -a cmake_targets/log/physim_helm_summary.txt 2>&1'
,
'\$'
,
6
)
...
...
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