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
wangjie
OpenXG-RAN
Commits
382ab05a
Commit
382ab05a
authored
Apr 16, 2021
by
Mohammed Ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix on commands delay
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
72d5cec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+5
-4
No files found.
ci-scripts/cls_physim1.py
View file @
382ab05a
...
...
@@ -196,13 +196,15 @@ class PhySim:
# Waiting to complete the running test
count
=
0
isFinished
=
False
while
(
count
<
2
6
and
isFinished
==
False
):
time
.
sleep
(
60
)
while
(
count
<
2
4
and
isFinished
==
False
):
time
.
sleep
(
58
)
mySSH
.
command
(
'oc get pods -l app.kubernetes.io/instance=physim | grep dlsim'
,
'\$'
,
6
)
time
.
sleep
(
2
)
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
}
2>&1 | tail -n 1'
,
'\$'
,
6
)
mySSH
.
command
(
f'oc logs --tail=1
{
podName1
}
2>&1'
,
'\$'
,
6
)
time
.
sleep
(
1
)
if
mySSH
.
getBefore
().
count
(
'Finished'
)
!=
0
:
isFinished
=
True
count
+=
1
...
...
@@ -220,7 +222,6 @@ class PhySim:
while
(
isFinished1
==
False
):
time
.
sleep
(
10
)
mySSH
.
command
(
'oc get pods -l app.kubernetes.io/instance=physim'
,
'\$'
,
6
)
logging
.
debug
(
mySSH
.
getBefore
())
if
re
.
search
(
'No resources found'
,
mySSH
.
getBefore
()):
isFinished1
=
True
if
isFinished1
==
True
:
...
...
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