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
OpenXG
OpenXG UE
Commits
39f395c0
Commit
39f395c0
authored
Apr 12, 2021
by
Mohammed Ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: error fix
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
d5413e83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+7
-7
No files found.
ci-scripts/cls_physim1.py
View file @
39f395c0
...
@@ -120,19 +120,19 @@ class PhySim:
...
@@ -120,19 +120,19 @@ class PhySim:
logging
.
debug
(
'oai-physim size is unknown'
)
logging
.
debug
(
'oai-physim size is unknown'
)
# logging to OC cluster
# logging to OC cluster
mySSH
.
command
(
'oc login -u {self.OCUserName} -p {self.OCPassword}'
,
'\$'
,
6
)
mySSH
.
command
(
f
'oc login -u
{
self
.
OCUserName
}
-p
{
self
.
OCPassword
}
'
,
'\$'
,
6
)
print
(
mySSH
.
getBefore
())
print
(
mySSH
.
getBefore
())
if
mySSH
.
getBefore
().
count
(
'Login successful.'
)
==
0
:
if
mySSH
.
getBefore
().
count
(
'Login successful.'
)
==
0
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
else
:
else
:
logging
.
debug
(
'
\u001B
[1m Login to OC Cluster Successfully
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1m Login to OC Cluster Successfully
\u001B
[0m'
)
mySSH
.
command
(
'oc project {self.OCWorkspace}'
,
'\$'
,
6
)
mySSH
.
command
(
f
'oc project
{
self
.
OCWorkspace
}
'
,
'\$'
,
6
)
if
(
mySSH
.
getBefore
().
count
(
'Already on project "{self.OCWorkspace}"'
))
==
0
or
(
mySSH
.
getBefore
().
count
(
'Now using project "{self.OCWorkspace}"'
))
==
0
:
if
(
mySSH
.
getBefore
().
count
(
f'Already on project "
{
self
.
OCWorkspace
}
"'
))
==
0
or
(
mySSH
.
getBefore
().
count
(
f
'Now using project "
{
self
.
OCWorkspace
}
"'
))
==
0
:
logging
.
error
(
'
\u001B
[1m Unable to access OC project {self.OCWorkspace}
\u001B
[0m'
)
logging
.
error
(
f
'
\u001B
[1m Unable to access OC project
{
self
.
OCWorkspace
}
\u001B
[0m'
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
else
:
else
:
logging
.
debug
(
'
\u001B
[1m Now using project {self.OCWorkspace}
\u001B
[0m'
)
logging
.
debug
(
f
'
\u001B
[1m Now using project
{
self
.
OCWorkspace
}
\u001B
[0m'
)
# Using helm charts deployment
# Using helm charts deployment
mySSH
.
command
(
'helm install physim ./charts/physims/'
,
'\$'
,
6
)
mySSH
.
command
(
'helm install physim ./charts/physims/'
,
'\$'
,
6
)
...
@@ -157,7 +157,7 @@ class PhySim:
...
@@ -157,7 +157,7 @@ class PhySim:
result
=
re
.
search
(
'oai-nr-dlsim[\S\d\w]+'
,
mySSH
.
getBefore
())
result
=
re
.
search
(
'oai-nr-dlsim[\S\d\w]+'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
if
result
is
not
None
:
podName1
=
result
.
group
()
podName1
=
result
.
group
()
mySSH
.
command
(
'oc logs {podName1}'
,
'\$'
,
6
)
mySSH
.
command
(
f
'oc logs
{
podName1
}
'
,
'\$'
,
6
)
if
mySSH
.
getBefore
().
count
(
'Finished'
)
!=
0
:
if
mySSH
.
getBefore
().
count
(
'Finished'
)
!=
0
:
isFinished
=
True
isFinished
=
True
count
+=
1
count
+=
1
...
@@ -166,7 +166,7 @@ class PhySim:
...
@@ -166,7 +166,7 @@ class PhySim:
# Getting the logs of each executables running in individual pods
# Getting the logs of each executables running in individual pods
for
podName
in
podNames
:
for
podName
in
podNames
:
mySSH
.
command
(
'oc logs {podName} >> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
6
)
mySSH
.
command
(
f
'oc logs
{
podName
}
>> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
6
)
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'mv log/* '
+
'physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'mv log/* '
+
'physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
...
...
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