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

Commit ef54d7cf authored by Yan Wang's avatar Yan Wang
Browse files

Fix a failed test because of passing wrong type of arguments.

Test: pytest run_app_with_prefetch_test.py
Change-Id: Id416e67bac8fe3487e5ea85cc488bda0988d513b
parent 315ae2d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ def parse_options(argv: List[str] = None):

  return parser.parse_args(argv)

def validate_options(args: argparse.Namespace) -> Tuple[bool, RunCommandArgs]:
def validate_options(args: RunCommandArgs) -> Tuple[bool, RunCommandArgs]:
  """Validates the activity and trace file if needed.

  Returns:
+2 −1
Original line number Diff line number Diff line
@@ -156,7 +156,8 @@ def test_main():
  args = '--package com.fake.package --activity act -s'
  opts = run.parse_options(shlex.split(args))

  result = run.run_test(opts)
  args = run.get_args_from_opts(opts)
  result = run.run_test(args)
  assert result == [('TotalTime', '123')]

def test_set_up_adb_env():