tools/fuchsia/comparative_tester/comparative_tester.py
def RunTest(target: TestTarget, run_locally: bool = False) -> None:
  """Run the given TestTarget on both Linux and Fuchsia

  Args:
    target (TestTarget): The TestTarget to run.
    run_locally (bool, optional): Defaults to False. Whether the test should be
        run on the host machine, or sent to remote devices for execution.

  Returns:
    None: Technically an IO (), as it writes to the results files
  """

  linux_out = target.ExecLinux(target_spec.linux_out_dir, run_locally)
  linux_result = test_results.TargetResultFromStdout(linux_out.splitlines(),
                                                     target._name)
  print("Ran Linux")
  fuchsia_out = target.ExecFuchsia(target_spec.fuchsia_out_dir, run_locally)
  fuchsia_result = test_results.TargetResultFromStdout(fuchsia_out.splitlines(),
                                                       target._name)
  print("Ran Fuchsia")
  outname = "{}.{}.json".format(target._name, time.time())
  linux_result.WriteToJson("{}/{}".format(target_spec.raw_linux_dir, outname))
  fuchsia_result.WriteToJson("{}/{}".format(target_spec.raw_fuchsia_dir,
                                            outname))
  print("Wrote result files")
Run the given TestTarget on both Linux and Fuchsia

  Args:
    target (TestTarget): The TestTarget to run.
    run_locally (bool, optional): Defaults to False. Whether the test should be
        run on the host machine, or sent to remote devices for execution.

  Returns:
    None: Technically an IO (), as it writes to the results files
  
Run the given TestTarget on both Linux and Fuchsia
Run the given TestTarget on both Linux and Fuchsia
def RunTest(target: TestTarget, run_locally: bool = False) -> None:
  linux_out = target.ExecLinux(target_spec.linux_out_dir, run_locally)
  linux_result = test_results.TargetResultFromStdout(linux_out.splitlines(),
                                                     target._name)
  print("Ran Linux")
  fuchsia_out = target.ExecFuchsia(target_spec.fuchsia_out_dir, run_locally)
  fuchsia_result = test_results.TargetResultFromStdout(fuchsia_out.splitlines(),
                                                       target._name)
  print("Ran Fuchsia")
  outname = "{}.{}.json".format(target._name, time.time())
  linux_result.WriteToJson("{}/{}".format(target_spec.raw_linux_dir, outname))
  fuchsia_result.WriteToJson("{}/{}".format(target_spec.raw_fuchsia_dir,
                                            outname))
  print("Wrote result files")
def RunTest ( target : TestTarget , run_locally : bool = False ) -> None : linux_out = target . ExecLinux ( target_spec . linux_out_dir , run_locally ) linux_result = test_results . TargetResultFromStdout ( linux_out . splitlines ( ) , target . _name ) print ( "Ran Linux" ) fuchsia_out = target . ExecFuchsia ( target_spec . fuchsia_out_dir , run_locally ) fuchsia_result = test_results . TargetResultFromStdout ( fuchsia_out . splitlines ( ) , target . _name ) print ( "Ran Fuchsia" ) outname = "{}.{}.json" . format ( target . _name , time . time ( ) ) linux_result . WriteToJson ( "{}/{}" . format ( target_spec . raw_linux_dir , outname ) ) fuchsia_result . WriteToJson ( "{}/{}" . format ( target_spec . raw_fuchsia_dir , outname ) ) print ( "Wrote result files" )
Run the given TestTarget on both Linux and Fuchsia
Run the given TestTarget on both Linux and Fuchsia
"""Run the given TestTarget on both Linux and Fuchsia

  Args:
    target (TestTarget): The TestTarget to run.
    run_locally (bool, optional): Defaults to False. Whether the test should be
        run on the host machine, or sent to remote devices for execution.

  Returns:
    None: Technically an IO (), as it writes to the results files
  """
Technically an IO (), as it writes to the results files
Technically an IO () as it writes to the results files
None
target
TestTarget
The TestTarget to run.
The TestTarget to run .
run_locally
bool
Defaults to False. Whether the test should be
run on the host machine, or sent to remote devices for execution.
Defaults to False . Whether the test should be run on the host machine or sent to remote devices for execution .