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
e70213cd
Commit
e70213cd
authored
Sep 13, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: declare variable before use
parent
f43090fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-1
No files found.
ci-scripts/cls_oaicitest.py
View file @
e70213cd
...
@@ -519,6 +519,7 @@ class OaiCiTest():
...
@@ -519,6 +519,7 @@ class OaiCiTest():
ping_cmd
=
f'
{
ue
.
getCmdPrefix
()
}
ping
{
interface
}
{
self
.
ping_args
}
2>&1 | tee /tmp/
{
ping_log_file
}
'
ping_cmd
=
f'
{
ue
.
getCmdPrefix
()
}
ping
{
interface
}
{
self
.
ping_args
}
2>&1 | tee /tmp/
{
ping_log_file
}
'
cmd
=
cls_cmd
.
getConnection
(
ue
.
getHost
())
cmd
=
cls_cmd
.
getConnection
(
ue
.
getHost
())
response
=
cmd
.
run
(
ping_cmd
,
timeout
=
int
(
ping_time
[
0
])
*
1.5
)
response
=
cmd
.
run
(
ping_cmd
,
timeout
=
int
(
ping_time
[
0
])
*
1.5
)
ue_header
=
f'UE
{
ue
.
getName
()
}
(
{
ueIP
}
)'
if
response
.
returncode
!=
0
:
if
response
.
returncode
!=
0
:
message
=
ue_header
+
': ping crashed: TIMEOUT?'
message
=
ue_header
+
': ping crashed: TIMEOUT?'
logging
.
error
(
'
\u001B
[1;37;41m '
+
message
+
'
\u001B
[0m'
)
logging
.
error
(
'
\u001B
[1;37;41m '
+
message
+
'
\u001B
[0m'
)
...
@@ -528,7 +529,6 @@ class OaiCiTest():
...
@@ -528,7 +529,6 @@ class OaiCiTest():
cmd
.
copyin
(
src
=
f'/tmp/
{
ping_log_file
}
'
,
tgt
=
local_ping_log_file
)
cmd
.
copyin
(
src
=
f'/tmp/
{
ping_log_file
}
'
,
tgt
=
local_ping_log_file
)
cmd
.
close
()
cmd
.
close
()
ue_header
=
f'UE
{
ue
.
getName
()
}
(
{
ueIP
}
)'
with
open
(
local_ping_log_file
,
'r'
)
as
f
:
with
open
(
local_ping_log_file
,
'r'
)
as
f
:
ping_output
=
""
.
join
(
f
.
readlines
())
ping_output
=
""
.
join
(
f
.
readlines
())
result
=
re
.
search
(
', (?P<packetloss>[0-9\.]+)% packet loss, time [0-9\.]+ms'
,
ping_output
)
result
=
re
.
search
(
', (?P<packetloss>[0-9\.]+)% packet loss, time [0-9\.]+ms'
,
ping_output
)
...
...
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