Skip to content

How to best cleanup simulators after test timeout? #2986

Description

@john-flanagan

We were running into an issue where non-reused simulators would end getting left over when hosted iOS unit tests timed out. We have a patch that combines the trap handler that cleans up test_tmp_dir with a call to xcrun simctl delete to clean up single-use simulators, but it doesn't seem like a particularly scalable solution.

It'd be nice to formalize calling into clean_up_simulator_action_binary when test timeouts happen and how that cleanup script could detect that the test timed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions