Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
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
openairinterface-6g
Commits
0f094a5a
Commit
0f094a5a
authored
May 13, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove any usage of UE* main.py parameters
The parameter is not used. Remove them.
parent
5f0289ba
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
123 deletions
+13
-123
ci-scripts/Jenkinsfile-tmp-full-ran
ci-scripts/Jenkinsfile-tmp-full-ran
+2
-45
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
+2
-45
ci-scripts/args_parse.py
ci-scripts/args_parse.py
+4
-8
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-11
ci-scripts/helpreadme.py
ci-scripts/helpreadme.py
+0
-6
ci-scripts/main.py
ci-scripts/main.py
+4
-4
ci-scripts/tests/test-runner/run.sh
ci-scripts/tests/test-runner/run.sh
+0
-4
No files found.
ci-scripts/Jenkinsfile-tmp-full-ran
View file @
0f094a5a
...
@@ -100,15 +100,6 @@ pipeline {
...
@@ -100,15 +100,6 @@ pipeline {
if
(
params
.
eNB_Credentials
==
null
)
{
if
(
params
.
eNB_Credentials
==
null
)
{
allParametersPresent
=
false
allParametersPresent
=
false
}
}
if
(
params
.
UE_IPAddress
==
null
)
{
allParametersPresent
=
false
}
if
(
params
.
UE_SourceCodePath
==
null
)
{
allParametersPresent
=
false
}
if
(
params
.
UE_Credentials
==
null
)
{
allParametersPresent
=
false
}
// the following 4 parameters should be pushed by the master trigger
// the following 4 parameters should be pushed by the master trigger
// if not present, take the job GIT variables (used for developing)
// if not present, take the job GIT variables (used for developing)
if
(
params
.
eNB_Repository
==
null
)
{
if
(
params
.
eNB_Repository
==
null
)
{
...
@@ -181,7 +172,6 @@ pipeline {
...
@@ -181,7 +172,6 @@ pipeline {
}
}
withCredentials
([
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB_Credentials}"
,
usernameVariable:
'eNB_Username'
,
passwordVariable:
'eNB_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB_Credentials}"
,
usernameVariable:
'eNB_Username'
,
passwordVariable:
'eNB_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
],
])
{
])
{
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} ${mainPythonAllXmlFiles}"
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} ${mainPythonAllXmlFiles}"
String
[]
myXmlTestSuite
=
testXMLFile
.
split
(
"\\r?\\n"
)
String
[]
myXmlTestSuite
=
testXMLFile
.
split
(
"\\r?\\n"
)
...
@@ -189,7 +179,7 @@ pipeline {
...
@@ -189,7 +179,7 @@ pipeline {
if
(
fileExists
(
xmlFile
))
{
if
(
fileExists
(
xmlFile
))
{
try
{
try
{
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --
UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath} --
XMLTestFile=${xmlFile}"
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --XMLTestFile=${xmlFile}"
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
currentBuild
.
result
=
'FAILURE'
...
@@ -197,7 +187,7 @@ pipeline {
...
@@ -197,7 +187,7 @@ pipeline {
}
}
}
}
}
}
sh
"python3 main.py --mode=FinalizeHtml --finalStatus=${buildStageStatus} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password}
--UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password}
"
sh
"python3 main.py --mode=FinalizeHtml --finalStatus=${buildStageStatus} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password}"
}
}
}
}
}
}
...
@@ -244,24 +234,6 @@ pipeline {
...
@@ -244,24 +234,6 @@ pipeline {
}
}
}
}
}
}
stage
(
'Log Collection (OAI UE - Build)'
)
{
steps
{
echo
'\u2705 \u001B[32mLog Collection (OAI UE - Build)\u001B[0m'
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
sh
"python3 ci-scripts/main.py --mode=LogCollectBuild --UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath}"
echo
'\u2705 \u001B[32mLog Transfer (UE - Build)\u001B[0m'
sh
"sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/build.log.zip ./build.log.${env.BUILD_ID}.zip || true"
}
script
{
if
(
fileExists
(
"build.log.${env.BUILD_ID}.zip"
))
{
archiveArtifacts
"build.log.${env.BUILD_ID}.zip"
}
}
}
}
stage
(
'Log Collection (eNB - Run)'
)
{
stage
(
'Log Collection (eNB - Run)'
)
{
steps
{
steps
{
withCredentials
([
withCredentials
([
...
@@ -285,21 +257,6 @@ pipeline {
...
@@ -285,21 +257,6 @@ pipeline {
}
}
}
}
}
}
stage
(
'Log Collection (OAI UE - Run)'
)
{
steps
{
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
echo
'\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
sh
"sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/ue.log.zip ./ue.log.${env.BUILD_ID}.zip || true"
}
script
{
if
(
fileExists
(
"ue.log.${env.BUILD_ID}.zip"
))
{
archiveArtifacts
"ue.log.${env.BUILD_ID}.zip"
}
}
}
}
}
}
}
}
}
}
...
...
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
View file @
0f094a5a
...
@@ -113,15 +113,6 @@ pipeline {
...
@@ -113,15 +113,6 @@ pipeline {
if
(
params
.
eNB2_Credentials
==
null
)
{
if
(
params
.
eNB2_Credentials
==
null
)
{
allParametersPresent
=
false
allParametersPresent
=
false
}
}
if
(
params
.
UE_IPAddress
==
null
)
{
allParametersPresent
=
false
}
if
(
params
.
UE_SourceCodePath
==
null
)
{
allParametersPresent
=
false
}
if
(
params
.
UE_Credentials
==
null
)
{
allParametersPresent
=
false
}
// the following 4 parameters should be pushed by the master trigger
// the following 4 parameters should be pushed by the master trigger
// if not present, take the job GIT variables (used for developing)
// if not present, take the job GIT variables (used for developing)
if
(
params
.
eNB_Repository
==
null
)
{
if
(
params
.
eNB_Repository
==
null
)
{
...
@@ -196,7 +187,6 @@ pipeline {
...
@@ -196,7 +187,6 @@ pipeline {
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB_Credentials}"
,
usernameVariable:
'eNB_Username'
,
passwordVariable:
'eNB_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB_Credentials}"
,
usernameVariable:
'eNB_Username'
,
passwordVariable:
'eNB_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB1_Credentials}"
,
usernameVariable:
'eNB1_Username'
,
passwordVariable:
'eNB1_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB1_Credentials}"
,
usernameVariable:
'eNB1_Username'
,
passwordVariable:
'eNB1_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB2_Credentials}"
,
usernameVariable:
'eNB2_Username'
,
passwordVariable:
'eNB2_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB2_Credentials}"
,
usernameVariable:
'eNB2_Username'
,
passwordVariable:
'eNB2_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
])
{
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} ${mainPythonAllXmlFiles}"
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} ${mainPythonAllXmlFiles}"
String
[]
myXmlTestSuite
=
testXMLFile
.
split
(
"\\r?\\n"
)
String
[]
myXmlTestSuite
=
testXMLFile
.
split
(
"\\r?\\n"
)
...
@@ -204,7 +194,7 @@ pipeline {
...
@@ -204,7 +194,7 @@ pipeline {
if
(
fileExists
(
xmlFile
))
{
if
(
fileExists
(
xmlFile
))
{
try
{
try
{
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --eNB1IPAddress=${params.eNB1_IPAddress} --eNB1UserName=${eNB1_Username} --eNB1Password=${eNB1_Password} --eNB1SourceCodePath=${params.eNB1_SourceCodePath} --eNB2IPAddress=${params.eNB2_IPAddress} --eNB2UserName=${eNB2_Username} --eNB2Password=${eNB2_Password} --eNB2SourceCodePath=${params.eNB2_SourceCodePath} --
UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath} --
XMLTestFile=${xmlFile}"
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --eNB1IPAddress=${params.eNB1_IPAddress} --eNB1UserName=${eNB1_Username} --eNB1Password=${eNB1_Password} --eNB1SourceCodePath=${params.eNB1_SourceCodePath} --eNB2IPAddress=${params.eNB2_IPAddress} --eNB2UserName=${eNB2_Username} --eNB2Password=${eNB2_Password} --eNB2SourceCodePath=${params.eNB2_SourceCodePath} --XMLTestFile=${xmlFile}"
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
currentBuild
.
result
=
'FAILURE'
...
@@ -212,7 +202,7 @@ pipeline {
...
@@ -212,7 +202,7 @@ pipeline {
}
}
}
}
}
}
sh
"python3 main.py --mode=FinalizeHtml --finalStatus=${buildStageStatus} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password}
--UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password}
"
sh
"python3 main.py --mode=FinalizeHtml --finalStatus=${buildStageStatus} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password}"
}
}
}
}
}
}
...
@@ -238,24 +228,6 @@ pipeline {
...
@@ -238,24 +228,6 @@ pipeline {
}
}
}
}
}
}
stage
(
'Log Collection (OAI UE - Build)'
)
{
steps
{
echo
'\u2705 \u001B[32mLog Collection (OAI UE - Build)\u001B[0m'
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
sh
"python3 ci-scripts/main.py --mode=LogCollectBuild --UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath}"
echo
'\u2705 \u001B[32mLog Transfer (UE - Build)\u001B[0m'
sh
"sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/build.log.zip ./build.log.${env.BUILD_ID}.zip || true"
}
script
{
if
(
fileExists
(
"build.log.${env.BUILD_ID}.zip"
))
{
archiveArtifacts
"build.log.${env.BUILD_ID}.zip"
}
}
}
}
stage
(
'Log Collection (eNB - Run)'
)
{
stage
(
'Log Collection (eNB - Run)'
)
{
steps
{
steps
{
withCredentials
([
withCredentials
([
...
@@ -274,21 +246,6 @@ pipeline {
...
@@ -274,21 +246,6 @@ pipeline {
}
}
}
}
}
}
stage
(
'Log Collection (OAI UE - Run)'
)
{
steps
{
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.UE_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
echo
'\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
sh
"sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/ue.log.zip ./ue.log.${env.BUILD_ID}.zip || true"
}
script
{
if
(
fileExists
(
"ue.log.${env.BUILD_ID}.zip"
))
{
archiveArtifacts
"ue.log.${env.BUILD_ID}.zip"
}
}
}
}
}
}
}
}
}
}
...
...
ci-scripts/args_parse.py
View file @
0f094a5a
...
@@ -206,17 +206,13 @@ def ArgsParse(argvs,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,PHYSIM,CLUSTER):
...
@@ -206,17 +206,13 @@ def ArgsParse(argvs,CiTestObj,RAN,HTML,CONTAINERS,HELP,SCA,PHYSIM,CLUSTER):
HTML
.
testXMLfiles
.
append
(
matchReg
.
group
(
1
))
HTML
.
testXMLfiles
.
append
(
matchReg
.
group
(
1
))
HTML
.
nbTestXMLfiles
=
HTML
.
nbTestXMLfiles
+
1
HTML
.
nbTestXMLfiles
=
HTML
.
nbTestXMLfiles
+
1
elif
re
.
match
(
r'^\-\-UEIPAddress=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
# cleanup
elif
re
.
match
(
r'^\-\-UEIPAddress=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
# cleanup
matchReg
=
re
.
match
(
r'^\-\-UEIPAddress=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
print
(
"parameter --UEIPAddress ignored"
)
CiTestObj
.
UEIPAddress
=
matchReg
.
group
(
1
)
elif
re
.
match
(
r'^\-\-UEUserName=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
elif
re
.
match
(
r'^\-\-UEUserName=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
r'^\-\-UEUserName=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
print
(
"parameter --UEUserName ignored"
)
CiTestObj
.
UEUserName
=
matchReg
.
group
(
1
)
elif
re
.
match
(
r'^\-\-UEPassword=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
elif
re
.
match
(
r'^\-\-UEPassword=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
r'^\-\-UEPassword=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
print
(
"parameter --UEPassword ignored"
)
CiTestObj
.
UEPassword
=
matchReg
.
group
(
1
)
elif
re
.
match
(
r'^\-\-UESourceCodePath=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
elif
re
.
match
(
r'^\-\-UESourceCodePath=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
r'^\-\-UESourceCodePath=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
print
(
"parameter --UESourceCodePath ignored"
)
CiTestObj
.
UESourceCodePath
=
matchReg
.
group
(
1
)
elif
re
.
match
(
r'^\-\-finalStatus=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
elif
re
.
match
(
r'^\-\-finalStatus=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
r'^\-\-finalStatus=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
matchReg
=
re
.
match
(
r'^\-\-finalStatus=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
finalStatus
=
matchReg
.
group
(
1
)
finalStatus
=
matchReg
.
group
(
1
)
...
...
ci-scripts/cls_oaicitest.py
View file @
0f094a5a
...
@@ -275,11 +275,6 @@ class OaiCiTest():
...
@@ -275,11 +275,6 @@ class OaiCiTest():
self
.
iperf_options
=
''
self
.
iperf_options
=
''
self
.
iperf_tcp_rate_target
=
''
self
.
iperf_tcp_rate_target
=
''
self
.
finalStatus
=
False
self
.
finalStatus
=
False
self
.
UEIPAddress
=
''
self
.
UEUserName
=
''
self
.
UEPassword
=
''
self
.
UESourceCodePath
=
''
self
.
UELogFile
=
''
self
.
air_interface
=
''
self
.
air_interface
=
''
self
.
ue_ids
=
[]
self
.
ue_ids
=
[]
self
.
nodes
=
[]
self
.
nodes
=
[]
...
@@ -888,7 +883,7 @@ class OaiCiTest():
...
@@ -888,7 +883,7 @@ class OaiCiTest():
def
LogCollectBuild
(
self
,
RAN
):
def
LogCollectBuild
(
self
,
RAN
):
# Some pipelines are using "none" IP / Credentials
# Some pipelines are using "none" IP / Credentials
# In that case, just forget about it
# In that case, just forget about it
if
RAN
.
eNBIPAddress
==
'none'
or
self
.
UEIPAddress
==
'none'
:
if
RAN
.
eNBIPAddress
==
'none'
:
sys
.
exit
(
0
)
sys
.
exit
(
0
)
if
(
RAN
.
eNBIPAddress
!=
''
and
RAN
.
eNBUserName
!=
''
and
RAN
.
eNBPassword
!=
''
):
if
(
RAN
.
eNBIPAddress
!=
''
and
RAN
.
eNBUserName
!=
''
and
RAN
.
eNBPassword
!=
''
):
...
@@ -896,11 +891,6 @@ class OaiCiTest():
...
@@ -896,11 +891,6 @@ class OaiCiTest():
UserName
=
RAN
.
eNBUserName
UserName
=
RAN
.
eNBUserName
Password
=
RAN
.
eNBPassword
Password
=
RAN
.
eNBPassword
SourceCodePath
=
RAN
.
eNBSourceCodePath
SourceCodePath
=
RAN
.
eNBSourceCodePath
elif
(
self
.
UEIPAddress
!=
''
and
self
.
UEUserName
!=
''
and
self
.
UEPassword
!=
''
):
IPAddress
=
self
.
UEIPAddress
UserName
=
self
.
UEUserName
Password
=
self
.
UEPassword
SourceCodePath
=
self
.
UESourceCodePath
else
:
else
:
sys
.
exit
(
'Insufficient Parameter'
)
sys
.
exit
(
'Insufficient Parameter'
)
with
cls_cmd
.
getConnection
(
IPAddress
)
as
cmd
:
with
cls_cmd
.
getConnection
(
IPAddress
)
as
cmd
:
...
...
ci-scripts/helpreadme.py
View file @
0f094a5a
...
@@ -58,12 +58,6 @@ def eNBSrvHelp(ipaddr, username, password, sourcepath):
...
@@ -58,12 +58,6 @@ def eNBSrvHelp(ipaddr, username, password, sourcepath):
print
(
' --eNBPassword=[eNB
\'
s Login Password] -- '
+
password
)
print
(
' --eNBPassword=[eNB
\'
s Login Password] -- '
+
password
)
print
(
' --eNBSourceCodePath=[eNB
\'
s Source Code Path] -- '
+
sourcepath
)
print
(
' --eNBSourceCodePath=[eNB
\'
s Source Code Path] -- '
+
sourcepath
)
def
OAIUESrvHelp
(
ipaddr
,
username
,
password
,
sourcepath
):
print
(
' --UEIPAddress=[UE
\'
s IP Address] -- '
+
ipaddr
)
print
(
' --UEUserName=[UE
\'
s Login User Name] -- '
+
username
)
print
(
' --UEPassword=[UE
\'
s Login Password] -- '
+
password
)
print
(
' --UESourceCodePath=[UE
\'
s Source Code Path] -- '
+
sourcepath
)
def
XmlHelp
(
filename
):
def
XmlHelp
(
filename
):
print
(
' --XMLTestFile=[XML Test File to be run] -- '
+
filename
)
print
(
' --XMLTestFile=[XML Test File to be run] -- '
+
filename
)
print
(
' Note: multiple xml files can be specified (--XMLFile=File1 ... --XMLTestFile=FileN) when HTML headers are created ("InitiateHtml" mode)'
)
print
(
' Note: multiple xml files can be specified (--XMLFile=File1 ... --XMLTestFile=FileN) when HTML headers are created ("InitiateHtml" mode)'
)
...
...
ci-scripts/main.py
View file @
0f094a5a
...
@@ -485,9 +485,9 @@ elif re.match('^TerminateMME$', mode, re.IGNORECASE):
...
@@ -485,9 +485,9 @@ elif re.match('^TerminateMME$', mode, re.IGNORECASE):
elif
re
.
match
(
'^TerminateSPGW$'
,
mode
,
re
.
IGNORECASE
):
elif
re
.
match
(
'^TerminateSPGW$'
,
mode
,
re
.
IGNORECASE
):
logging
.
warning
(
"Option TerminateSPGW ignored"
)
logging
.
warning
(
"Option TerminateSPGW ignored"
)
elif
re
.
match
(
'^LogCollectBuild$'
,
mode
,
re
.
IGNORECASE
):
elif
re
.
match
(
'^LogCollectBuild$'
,
mode
,
re
.
IGNORECASE
):
if
(
RAN
.
eNBIPAddress
==
''
or
RAN
.
eNBUserName
==
''
or
RAN
.
eNBPassword
==
''
or
RAN
.
eNBSourceCodePath
==
''
)
and
(
CiTestObj
.
UEIPAddress
==
''
or
CiTestObj
.
UEUserName
==
''
or
CiTestObj
.
UEPassword
==
''
or
CiTestObj
.
UESourceCodePath
==
''
)
:
if
RAN
.
eNBIPAddress
==
''
or
RAN
.
eNBUserName
==
''
or
RAN
.
eNBPassword
==
''
or
RAN
.
eNBSourceCodePath
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
logging
.
warning
(
"nothing to collect (eNBIPAddress/eNBUserName/eNBPassword/eNBSourceCodePath is '')"
)
sys
.
exit
(
'Insufficient Parameter'
)
sys
.
exit
(
0
)
if
RAN
.
eNBIPAddress
==
'none'
:
if
RAN
.
eNBIPAddress
==
'none'
:
sys
.
exit
(
0
)
sys
.
exit
(
0
)
CiTestObj
.
LogCollectBuild
(
RAN
)
CiTestObj
.
LogCollectBuild
(
RAN
)
...
@@ -557,7 +557,7 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
...
@@ -557,7 +557,7 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
HELP
.
eNBSrvHelp
(
RAN
.
eNBIPAddress
,
RAN
.
eNBUserName
,
RAN
.
eNBPassword
,
RAN
.
eNBSourceCodePath
)
HELP
.
eNBSrvHelp
(
RAN
.
eNBIPAddress
,
RAN
.
eNBUserName
,
RAN
.
eNBPassword
,
RAN
.
eNBSourceCodePath
)
sys
.
exit
(
'Insufficient Parameter'
)
sys
.
exit
(
'Insufficient Parameter'
)
else
:
else
:
if
CiTestObj
.
UEIPAddress
==
''
or
CiTestObj
.
ranRepository
==
''
or
CiTestObj
.
ranBranch
==
''
or
CiTestObj
.
UEUserName
==
''
or
CiTestObj
.
UEPassword
==
''
or
CiTestObj
.
UESourceCodePat
h
==
''
:
if
CiTestObj
.
ranRepository
==
''
or
CiTestObj
.
ranBranc
h
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
HELP
.
GenericHelp
(
CONST
.
Version
)
sys
.
exit
(
'UE: Insufficient Parameter'
)
sys
.
exit
(
'UE: Insufficient Parameter'
)
...
...
ci-scripts/tests/test-runner/run.sh
View file @
0f094a5a
...
@@ -26,10 +26,6 @@ python3 main.py \
...
@@ -26,10 +26,6 @@ python3 main.py \
--eNBUserName
=
NONE
\
--eNBUserName
=
NONE
\
--eNBPassword
=
NONE
\
--eNBPassword
=
NONE
\
--eNBSourceCodePath
=
NONE
\
--eNBSourceCodePath
=
NONE
\
--UEIPAddress
=
localhost
\
--UEUserName
=
NONE
\
--UEPassword
=
NONE
\
--UESourceCodePath
=
NONE
\
--XMLTestFile
=
tests/test-runner/test.xml
--XMLTestFile
=
tests/test-runner/test.xml
python3 main.py
\
python3 main.py
\
...
...
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