CTRL-C or kill run.sh only terminates current test, not entire run

Bug #1097434 reported by George Ormond Lorch III
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Wishlist
Alexey Kopytov
2.0
Fix Released
Wishlist
Alexey Kopytov
2.1
Fix Released
Wishlist
Alexey Kopytov

Bug Description

When running the test suite, using <ctrl-c> or kill SIGTERM only terminates the currently running test. run.sh will continue on to the next test in the series rather then cleaning up and terminating entirely.

Related branches

Revision history for this message
Stewart Smith (stewart) wrote : Re: [Bug 1097434] Re: CTRL-C or kill run.sh only terminates current test, not entire run

This is fixed in parallel test branch, where ctrl-c properly goes and
kills everything (I made sure of that).
--
Stewart Smith

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Stewart -

That is great. Can you link this bug to those branches?

Revision history for this message
Alexey Kopytov (akopytov) wrote :

It's still has to be fixed in the test suite, rather than just in the parallel runner. For example, I may only want to use testrun.sh (in the parallel test branch) when I need to run the test suite locally. And that will still have the same problem with Ctrl-C.

What needs to be changed in the test suite is to have tests handle SIGINT and return a non-zero exit code.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Setting to Triaged as the linked branch contains only a partial fix.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-72

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.