Skip to content

Interrupting tox with ^C^C leaves the test process running #1172

Closed
@mgedmin

Description

@mgedmin

I ran tox, saw some errors, hit ^C to stop the test run. That didn't work so I hit ^C a couple of times more.\

Now I'm looking at

...................................................................................................................................................................................................................................................^CERROR: KEYBOARDINTERRUPT
Exception KeyboardInterrupt in <function remove at 0x7fa81be1e140> ignored
....^CERROR: keyboardinterrupt

[1m55s, exited with 2]
mg@platonas: ~/src/ivija [git:py3 *$=] $ ........

and while tox itself exited, the zope-testrunner process spawned by tox keeps running, spewing output to my terminal.

I'm on Ubuntu 18.10 with tox 3.7.0.

It would be nice if tox killed all the child processes (with SIGKILL) if the user presses ^C enough times, instead of leaving them running.

(Perhaps Unix process groups or terminal sessions could help? My Unix-fu is too weak to suggest a concrete solution.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commands-executionhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.level:hardrought estimate that this might be quite hard to implementpr-available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions