Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autotest: allow wsl2 networking bridge to be ignored #29106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Tools/autotest/sim_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'",
Expand Down Expand Up @@ -1297,6 +1297,11 @@ def generate_frame_help():
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,
Expand Down
Loading