Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-AMF
Commits
689fb352
Commit
689fb352
authored
Aug 12, 2021
by
ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix in the dsTester result check script
Signed-off-by:
ismail
<
mohammed.ismail@openairinterface.org
>
parent
bdf8e1c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ci-scripts/toCheckDSTesterResult.py
ci-scripts/toCheckDSTesterResult.py
+5
-4
No files found.
ci-scripts/toCheckDSTesterResult.py
View file @
689fb352
...
@@ -36,16 +36,17 @@ try:
...
@@ -36,16 +36,17 @@ try:
result
=
re
.
search
(
'(?:\/.+?\/)(.+?)(?:\/.+)'
,
str
(
line
))
result
=
re
.
search
(
'(?:\/.+?\/)(.+?)(?:\/.+)'
,
str
(
line
))
if
result
:
if
result
:
result1
=
re
.
search
(
'^(.*/)([^/]*)$'
,
str
(
result
.
group
(
0
)))
result1
=
re
.
search
(
'^(.*/)([^/]*)$'
,
str
(
result
.
group
(
0
)))
subprocess
.
check_output
(
f'cp
{
result1
.
group
(
1
)
}
* DS-TEST-RESULTS/'
,
stderr
=
subprocess
.
STDOUT
,
shell
=
True
,
universal_newlines
=
True
)
filename
=
re
.
search
(
'[^/]*$'
,
str
(
result1
.
group
(
0
)))
subprocess
.
check_output
(
f'cp -r
{
result1
.
group
(
1
)
}
* DS-TEST-RESULTS/'
,
shell
=
True
,
universal_newlines
=
True
)
locexist
=
True
locexist
=
True
except
IOError
:
except
IOError
:
sys
.
exit
(
"File not accessible to check DSTester Summary: DS-TEST-RESULTS/dsTester_Summary.txt"
)
sys
.
exit
(
"File not accessible to check DSTester Summary: DS-TEST-RESULTS/dsTester_Summary.txt"
)
if
locexist
:
if
locexist
:
try
:
try
:
with
open
(
cwd
+
'/DS-TEST-RESULTS/dcamf.yaml
'
)
as
f
:
with
open
(
cwd
+
f'/DS-TEST-RESULTS/
{
filename
.
group
(
0
)
}
'
)
as
f
:
data
=
yaml
.
load
(
f
)
data
=
yaml
.
full_
load
(
f
)
if
data
[
"final-result"
]
==
'fail'
:
if
data
[
"final-result"
]
==
'fail'
:
sys
.
exit
(
'DsTester final result FAILED'
)
sys
.
exit
(
'DsTester final result FAILED'
)
except
IOError
:
except
IOError
:
sys
.
exit
(
"File not accessible to check DSTester result: DS-TEST-RESULTS/dcamf.yaml"
)
sys
.
exit
(
f'File not accessible to check DSTester result: DS-TEST-RESULTS/
{
filename
.
group
(
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