Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5318a93b authored by David Duarte's avatar David Duarte
Browse files

BumbleBluetoothTests: Forward RootCanal port

This allows BumbleBluetoothTests to work with remote
cuttlefish instances.

Bug: 266884665
Test: atest BumbleBluetoothTests
Change-Id: Id489cbca97d1f1107c4359798e4927d3b4afccaf
parent b1f76e19
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -14,9 +14,14 @@

    <target_preparer class="com.android.tradefed.targetprep.RunHostCommandTargetPreparer">
      <option name="python-virtualenv" value="true"/>

      <option name="host-setup-command" value="adb -s $SERIAL forward tcp:6211 tcp:6211" />
      <option name="host-background-command" value="adb -s $SERIAL shell nc -L -p 6211 nc 192.168.97.1 7300" />
      <option name="host-teardown-command" value="adb -s $SERIAL forward --remove tcp:6211" />

      <option name="host-setup-command" value="adb -s $SERIAL reverse tcp:7999 tcp:7999" />
      <option name="host-background-command"
        value="$EXTRA_FILE(host_testcases)/BumbleBluetoothTests/bumble_pandora_server --config $EXTRA_FILE(host_testcases)/BumbleBluetoothTests/bumble_config.json"/>
        value="$EXTRA_FILE(host_testcases)/BumbleBluetoothTests/bumble_pandora_server --rootcanal-port 6211 --config $EXTRA_FILE(host_testcases)/BumbleBluetoothTests/bumble_config.json"/>
      <option name="host-teardown-command" value="adb -s $SERIAL reverse --remove tcp:7999" />
    </target_preparer>