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
wangjie
OpenXG-RAN
Commits
27b0306b
Commit
27b0306b
authored
Jan 20, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added option for skipping check for GitHead local/remote
parent
e0621295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+8
-1
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
27b0306b
...
...
@@ -1040,6 +1040,7 @@ MachineListGeneric=''
flag_remove_logdir
=
False
flag_start_testcase
=
False
nruns_lte_softmodem
=
''
flag_skip_git_head_check
=
False
print
"Number of arguments argc = "
+
str
(
len
(
sys
.
argv
))
#for index in range(1,len(sys.argv) ):
...
...
@@ -1094,6 +1095,8 @@ while i < len (sys.argv):
MachineListGeneric
=
MachineListGeneric
.
replace
(
"
\"
"
,
""
)
MachineListGeneric
=
MachineListGeneric
.
replace
(
"
\'
"
,
""
)
i
=
i
+
1
elif
arg
==
'--skip-git-head-check'
:
flag_skip_git_head_check
=
True
elif
arg
==
'-h'
:
print
"-s: This flag *MUST* be set to start the test cases"
print
"-r: Remove the log directory in autotests"
...
...
@@ -1107,6 +1110,7 @@ while i < len (sys.argv):
print
"--nrun_lte_softmodem: Set the number of runs for lte-softmodem test case class"
print
"-MachineList : overrides the MachineList parameter in test_case_list.xml"
print
"-MachineListGeneric : overrides the MachineListGeneric parameter in test_case_list.xml"
print
"--skip-git-head-check: skip checking of GitHead remote/local branch (only for debugging)"
sys
.
exit
()
else
:
print
"Unrecongnized Option: <"
+
arg
+
">. Use -h to see valid options"
...
...
@@ -1310,7 +1314,10 @@ for oai in oai_list:
cmd
=
cmd
+
'git_head=${git_head[0]}
\n
'
cmd
=
cmd
+
'echo
\"
GitOAI5GHeadVersion_remote = $git_head
\"
'
cmd
=
cmd
+
'echo
\"
GitOAI5GHeadVersion_local = '
+
GitOAI5GHeadVersion
+
'
\"
\n
'
cmd
=
cmd
+
'if [
\"
$git_head
\"
!=
\"
'
+
GitOAI5GHeadVersion
+
'
\"
]; then echo
\"
error: Git openairinterface5g head version does not match
\"
; fi
\n
'
if
flag_skip_git_head_check
==
True
:
cmd
=
cmd
+
'print
\"
skipping GitHead check...
\"
'
else
:
cmd
=
cmd
+
'if [
\"
$git_head
\"
!=
\"
'
+
GitOAI5GHeadVersion
+
'
\"
]; then echo
\"
error: Git openairinterface5g head version does not match
\"
; fi
\n
'
cmd
=
cmd
+
'source oaienv'
+
'
\n
'
cmd
=
cmd
+
'cd '
+
logdirOpenaircnRepo
+
'
\n
'
cmd
=
cmd
+
'git checkout '
+
GitOpenaircnRepoBranch
+
'
\n
'
...
...
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