tools/fuchsia/comparative_tester/comparative_tester.py
def ExecLinux(self, out_dir: str, run_locally: bool) -> str:
    """Execute this test target's test on Linux, either with QEMU or on actual
    hardware.

    Args:
      out_dir (str): The Linux output directory.
      run_locally (bool): Whether to use the host machine(true) or a physical
          device(false)

    Returns:
      str: The standard output of the test process.
    """
    command = []  # type: List[str]
    user = target_spec.linux_device_user
    ip = target_spec.linux_device_ip
    host_machine = "{0}@{1}".format(user, ip)
    if not run_locally:
      # Next is the transfer of all the directories to the destination device.
      self.TransferDependencies(out_dir, host_machine)
      command = [
          "ssh", "{}@{}".format(user, ip), "{1}/{0}/{1} -- {2}".format(
              out_dir, self._name, self._filter_flag)
      ]
    else:
      local_path = "{}/{}".format(out_dir, self._name)
      command = [local_path, "--", self._filter_flag]
    return RunCommand(command, "Test {} failed on linux!".format(self._target))
Execute this test target's test on Linux, either with QEMU or on actual
    hardware.

    Args:
      out_dir (str): The Linux output directory.
      run_locally (bool): Whether to use the host machine(true) or a physical
          device(false)

    Returns:
      str: The standard output of the test process.
    
Execute this test target's test on Linux, either with QEMU or on actual
hardware.
Execute this test target ' s test on Linux either with QEMU or on actual hardware .
def ExecLinux(self, out_dir: str, run_locally: bool) -> str:
    command = []  
    user = target_spec.linux_device_user
    ip = target_spec.linux_device_ip
    host_machine = "{0}@{1}".format(user, ip)
    if not run_locally:
      self.TransferDependencies(out_dir, host_machine)
      command = [
          "ssh", "{}@{}".format(user, ip), "{1}/{0}/{1} -- {2}".format(
              out_dir, self._name, self._filter_flag)
      ]
    else:
      local_path = "{}/{}".format(out_dir, self._name)
      command = [local_path, "--", self._filter_flag]
    return RunCommand(command, "Test {} failed on linux!".format(self._target))
def ExecLinux ( self , out_dir : str , run_locally : bool ) -> str : command = [ ] user = target_spec . linux_device_user ip = target_spec . linux_device_ip host_machine = "{0}@{1}" . format ( user , ip ) if not run_locally : self . TransferDependencies ( out_dir , host_machine ) command = [ "ssh" , "{}@{}" . format ( user , ip ) , "{1}/{0}/{1} -- {2}" . format ( out_dir , self . _name , self . _filter_flag ) ] else : local_path = "{}/{}" . format ( out_dir , self . _name ) command = [ local_path , "--" , self . _filter_flag ] return RunCommand ( command , "Test {} failed on linux!" . format ( self . _target ) )
Execute this test target's test on Linux, either with QEMU or on actual
hardware.
Execute this test target ' s test on Linux either with QEMU or on actual hardware .
"""Execute this test target's test on Linux, either with QEMU or on actual
    hardware.

    Args:
      out_dir (str): The Linux output directory.
      run_locally (bool): Whether to use the host machine(true) or a physical
          device(false)

    Returns:
      str: The standard output of the test process.
    """ # type: List[str] # Next is the transfer of all the directories to the destination device.
The standard output of the test process.
The standard output of the test process .
str
self
out_dir
str
The Linux output directory.
The Linux output directory .
run_locally
bool
Whether to use the host machine(true) or a physical
device(false)
Whether to use the host machine ( true ) or a physical device ( false )