Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
aa1cbff5
Commit
aa1cbff5
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Improve PhySim build to be shorter
parent
4d85beae
No related branches found
No related tags found
3 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1689
integration_2022_wk35b
,
!1487
LDPC offload on T1 card
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/cls_physim.py
+10
-16
10 additions, 16 deletions
ci-scripts/cls_physim.py
with
10 additions
and
16 deletions
ci-scripts/cls_physim.py
+
10
−
16
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
'
)
self
.
exitStatus
=
0
else
:
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
if
'
BUILD SHOULD BE SUCCESSFUL
'
in
f
.
read
():
HTML
.
CreateHtmlTestRow
(
self
.
buildargs
,
'
OK
'
,
CONST
.
ALL_PROCESSES_OK
,
'
PhySim
'
)
self
.
exitStatus
=
0
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
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment