mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-11 10:23:59 -04:00
autotest: allow wsl2 networking bridge to be ignored
This commit is contained in:
parent
691eca7b62
commit
d64cf3ec2d
@ -201,7 +201,7 @@ def under_wsl2():
|
||||
|
||||
|
||||
def wsl2_host_ip():
|
||||
if not under_wsl2():
|
||||
if not under_wsl2() or cmd_opts.no_wsl2_network:
|
||||
return None
|
||||
|
||||
pipe = subprocess.Popen("ip route show default | awk '{print $3}'",
|
||||
@ -1296,6 +1296,11 @@ group_sim.add_option("", "--no-extra-ports",
|
||||
dest='no_extra_ports',
|
||||
default=False,
|
||||
help="Disable setup of UDP 14550 and 14551 output")
|
||||
group_sim.add_option("", "--no-wsl2-network",
|
||||
action='store_true',
|
||||
dest='no_wsl2_network',
|
||||
default=False,
|
||||
help="Disable setup of WSL2 network for output")
|
||||
group_sim.add_option("-Z", "--swarm",
|
||||
type='string',
|
||||
default=None,
|
||||
|
Loading…
Reference in New Issue
Block a user