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
ZhouShuya
OpenXG-RAN
Commits
4b4e2213
Commit
4b4e2213
authored
Nov 10, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs related to COTS UE
parent
cd71443d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+15
-10
cmake_targets/autotests/tools/search_repl.py
cmake_targets/autotests/tools/search_repl.py
+1
-1
No files found.
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
View file @
4b4e2213
...
@@ -59,16 +59,21 @@ def send_command (cmd, response, timeout):
...
@@ -59,16 +59,21 @@ def send_command (cmd, response, timeout):
count
=
0
count
=
0
sleep_duration
=
1
sleep_duration
=
1
while
count
<=
timeout
:
while
count
<=
timeout
:
ser
.
write
(
cmd
+
'
\r\n
'
)
try
:
out
=
''
ser
.
write
(
cmd
+
'
\r\n
'
)
time
.
sleep
(
sleep_duration
)
out
=
''
count
=
count
+
sleep_duration
time
.
sleep
(
sleep_duration
)
while
ser
.
inWaiting
()
>
0
:
count
=
count
+
sleep_duration
out
+=
ser
.
read
(
1
)
while
ser
.
inWaiting
()
>
0
:
print
'out = <'
+
out
+
'> response = <'
+
response
+
'>
\n
'
out
+=
ser
.
read
(
1
)
if
re
.
search
(
response
,
out
):
print
'out = <'
+
out
+
'> response = <'
+
response
+
'>
\n
'
break
if
re
.
search
(
response
,
out
):
break
except
Exception
,
e
:
error
=
' cmd : '
+
cmd
+
' response : '
+
response
error
=
error
+
' In function: '
+
sys
.
_getframe
().
f_code
.
co_name
+
': *** Caught exception: '
+
str
(
e
.
__class__
)
+
" : "
+
str
(
e
)
error
=
error
+
traceback
.
format_exc
()
print
error
def
start_ue
()
:
def
start_ue
()
:
...
...
cmake_targets/autotests/tools/search_repl.py
View file @
4b4e2213
...
@@ -20,7 +20,7 @@ file.close()
...
@@ -20,7 +20,7 @@ file.close()
if
keyword
==
'mme_ip_address'
:
if
keyword
==
'mme_ip_address'
:
#string = (re.sub(r"mme_ip_address\s*=\s*\([^\$]+)\)\s*;\s*", r"<% tex \1 %>", t, re.M)
#string = (re.sub(r"mme_ip_address\s*=\s*\([^\$]+)\)\s*;\s*", r"<% tex \1 %>", t, re.M)
replacement_text
=
keyword
+
' =
'
+
replacement_text
+
'
; '
replacement_text
=
keyword
+
' =
({'
+
replacement_text
+
')}
; '
string
=
re
.
sub
(
r"mme_ip_address\s*=\s*\(([^\$]+?)\)\s*;"
,
replacement_text
,
string
,
re
.
M
)
string
=
re
.
sub
(
r"mme_ip_address\s*=\s*\(([^\$]+?)\)\s*;"
,
replacement_text
,
string
,
re
.
M
)
elif
keyword
==
'N_RB_DL'
:
elif
keyword
==
'N_RB_DL'
:
replacement_text
=
keyword
+
' = '
+
replacement_text
+
' ; '
replacement_text
=
keyword
+
' = '
+
replacement_text
+
' ; '
...
...
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