Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python runner doesn't exit when gauge gets SIGINT #245

Open
bherw opened this issue Oct 15, 2021 · 0 comments
Open

Python runner doesn't exit when gauge gets SIGINT #245

bherw opened this issue Oct 15, 2021 · 0 comments

Comments

@bherw
Copy link

bherw commented Oct 15, 2021

Describe the bug
When gauge gets terminated, gauge python keeps running, though it doesn't keep executing specs

To Reproduce
Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project with some specs
  2. Run gauge in a terminal
  3. Press Ctrl+C to send SIGINT to gauge
  4. Gauge exits, but check ps -fC python3 to see start.py and start.sh are still running.

Expected behavior
The python runner should exit cleanly. I should not have 20 start.py python3 processes running on my system after doing a few test runs.

In addition, I have some AbstractContentManager resources which need to get cleaned up after the test harness exits, whether it exits with an error or otherwise. Right now these are getting cleaned up in the @after_suite hook, so it would be nice if that could still get called on an abnormal exit. Alternatively, perhaps the test harness can help with managing and cleaning up AbstractContentManagers.

Versions:

  • Ubuntu 20.04
  • Python version 3.8
Gauge version: 1.4.1
Commit Hash: a82478a

Plugins
-------
html-report (4.1.0)
python (0.3.17)
screenshot (0.1.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant