purebred-mua / tasty-tmux

Terminal user acceptance testing via tmux
GNU Affero General Public License v3.0
6 stars 0 forks source link

Killing the test suite can leave orphan tmux session #13

Closed frasertweedale closed 4 years ago

frasertweedale commented 5 years ago

Describe the bug

If you kill the test suite with ^C, the current tmux session remains. A subsequent execution of the test suite encounters a duplicate session error.

To Reproduce

Steps to reproduce the behavior:

  1. Run the test suite.
  2. Kill the session at some point via ^C.
  3. Run the test suite again. With high probability, a duplicate session error is encountered.

Expected behavior

Test sessions get cleaned up even when the test suite was interrupted.

Alternatively, orphan tmux sessions are detected and killed such that their existence does not cause a problem.

romanofski commented 4 years ago

Oh see... I think #15 must have been a duplicate :/ Close?

frasertweedale commented 4 years ago

Does the PR solve this too, i.e. the test session is killed by user at an arbitrary point?

romanofski commented 4 years ago

Yep. Just ran the acceptance tests and kill them as described in (2.).