Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autoupdate Tester
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
firmware
Autoupdate Tester
Commits
c43cdf5e
Commit
c43cdf5e
authored
4 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
make IP to ping configurable
parent
871cbc18
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ffs-updatetest.py
+2
-1
2 additions, 1 deletion
ffs-updatetest.py
with
2 additions
and
1 deletion
ffs-updatetest.py
+
2
−
1
View file @
c43cdf5e
...
@@ -17,6 +17,7 @@ ap.add_argument("--updatecount", help="Number of updates to perform", default=10
...
@@ -17,6 +17,7 @@ ap.add_argument("--updatecount", help="Number of updates to perform", default=10
ap
.
add_argument
(
"
--debug
"
,
help
=
"
Enable debugging output
"
,
action
=
"
store_true
"
)
ap
.
add_argument
(
"
--debug
"
,
help
=
"
Enable debugging output
"
,
action
=
"
store_true
"
)
ap
.
add_argument
(
"
--before-version
"
,
help
=
"
Version expected running before update
"
,
default
=
"
2.0+2020-09-26-g.8547bd43-s.f16f34e
"
)
ap
.
add_argument
(
"
--before-version
"
,
help
=
"
Version expected running before update
"
,
default
=
"
2.0+2020-09-26-g.8547bd43-s.f16f34e
"
)
ap
.
add_argument
(
"
--after-version
"
,
help
=
"
Version expected running after update
"
,
default
=
"
2.1+2020-12-11-g.90d0e33c-s.de75272
"
)
ap
.
add_argument
(
"
--after-version
"
,
help
=
"
Version expected running after update
"
,
default
=
"
2.1+2020-12-11-g.90d0e33c-s.de75272
"
)
ap
.
add_argument
(
"
--ping-ip
"
,
help
=
"
IP to ping to verify connectivity to GW
"
,
default
=
"
fd21:b4dc:4b00::a38:1
"
)
args
=
ap
.
parse_args
()
args
=
ap
.
parse_args
()
if
args
.
debug
:
if
args
.
debug
:
...
@@ -63,7 +64,7 @@ def run_in_vm(cmd, asynchronous=False):
...
@@ -63,7 +64,7 @@ def run_in_vm(cmd, asynchronous=False):
return
result
return
result
def
has_gw_connection
():
def
has_gw_connection
():
result
=
run_in_vm
([
"
ping
"
,
"
-c1
"
,
"
fd21:b4dc:4b00::a38:1
"
])
result
=
run_in_vm
([
"
ping
"
,
"
-c1
"
,
args
.
ping_ip
])
return
result
[
"
exitcode
"
]
==
0
return
result
[
"
exitcode
"
]
==
0
def
wait_for_gw_connection
():
def
wait_for_gw_connection
():
...
...
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