Skip to content

test(cli): fake adb emu kill needs cat on PATH, so Android destroys wait the full grace #296

Closed

Description

@ElbertePlinio

Found while fixing #288 (PR #290).

The fake adb from makeFakeAndroidSdk in the CLI tests calls cat in its emu kill branch. cat is not on the fake's PATH unless the test uses realPath, so the graceful kill never works. Each Android session destroy in these tests then waits the full 30 s exit grace. This is why PR #290 had to set the commands test destroy limit to 45 s and the hook timeout to 90 s.

PR #290 now records every runCli home for cleanup, so the commands tests no longer need to register their env by hand.

  • Make the fake adb emu kill work without cat on PATH, and confirm Android destroys finish quickly
  • Lower the commands test destroy limit and hook timeout if they no longer need the grace

Activity

  1. added
    bug
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions