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
aa1cbff5
Commit
aa1cbff5
authored
Aug 23, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve PhySim build to be shorter
parent
4d85beae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
ci-scripts/cls_physim.py
ci-scripts/cls_physim.py
+10
-16
No files found.
ci-scripts/cls_physim.py
View file @
aa1cbff5
...
...
@@ -100,21 +100,16 @@ class PhySim:
mySSH
.
command
(
'rm '
+
self
.
__workSpacePath
+
self
.
__runLogFile
,
'\$'
,
5
)
mySSH
.
close
()
#check build result from local compile log file
buildStatus
=
False
with
open
(
self
.
__buildLogFile
)
as
f
:
#nr_prachsim is the last compile step
if
'nr_prachsim compiled'
in
f
.
read
():
buildStatus
=
True
#update HTML based on build status
if
buildStatus
:
HTML
.
CreateHtmlTestRow
(
self
.
buildargs
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
,
'LDPC'
)
if
'BUILD SHOULD BE SUCCESSFUL'
in
f
.
read
():
HTML
.
CreateHtmlTestRow
(
self
.
buildargs
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
,
'PhySim'
)
self
.
exitStatus
=
0
else
:
return
HTML
logging
.
error
(
'
\u001B
[1m Building Physical Simulators Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
self
.
buildargs
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
,
'LDPC'
)
HTML
.
CreateHtmlTabFooter
(
False
)
#exitStatus=1 will do a sys.exit in main
self
.
exitStatus
=
1
self
.
exitStatus
=
1
return
HTML
...
...
@@ -163,8 +158,7 @@ class PhySim:
mySSH
.
command
(
'source oaienv'
,
'\$'
,
5
)
mySSH
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p log'
,
'\$'
,
5
)
mySSH
.
command
(
'chmod 777 log'
,
'\$'
,
5
)
mySSH
.
command
(
'stdbuf -o0 ./build_oai '
+
self
.
buildargs
+
' 2>&1 | stdbuf -o0 tee '
+
self
.
__buildLogFile
,
'Bypassing the Tests|build have failed'
,
1500
)
mySSH
.
command
(
f'./build_oai
{
self
.
buildargs
}
2>&1 | tee
{
self
.
__buildLogFile
}
'
,
'\$'
,
1500
)
mySSH
.
close
()
#check build status and update HTML object
...
...
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