Skip to content

commands_post should have option to run after SIGINT #3858

@gaborbernat

Description

@gaborbernat

When a SIGINT (Ctrl-C) happens during test run, commands_post is not run, leaving no chance for cleanup.

Current behavior is by design, but an opt-in flag to always run commands_post (even after SIGINT) would be useful. Multiple users have requested this.

Suggested approach: add a flag like commands_post_always = true or similar, where first Ctrl-C interrupts commands and second Ctrl-C interrupts commands_post.

Ref: #2377

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions