Skip to content

Commit

Permalink
autotest: allow wsl2 networking bridge to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per authored and tridge committed Jan 22, 2025
1 parent 691eca7 commit d64cf3e
Showing 1 changed file with 6 additions and 1 deletion.
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 @@ -1296,6 +1296,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

0 comments on commit d64cf3e

Please sign in to comment.