forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit460c007
committed
Better handle interrupting TAP tests
Set up a signal handler for INT/TERM so that we run our END block if weget them. In END, if the exit status indicates a problem, call_update_pid(-1) to improve chances of the stop working in case start()hasn't returned yet.Also, change END's teardown_node() so that it passes fail_ok=>1, so thatif a node fails to stop, we still stop the other nodes in the same test.Per complaint from Andres Freund.This doesn't seem important enough to backpatch, at least for now.Discussion:https://postgr.es/m/20220930040734.mbted42oiynhn2t6@awork3.anarazel.de1 parent342bb38 commit460c007
1 file changed
+19
-3
lines changedLines changed: 19 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1545 | 1545 |
| |
1546 | 1546 |
| |
1547 | 1547 |
| |
1548 |
| - | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
1549 | 1556 |
| |
1550 | 1557 |
| |
1551 | 1558 |
| |
| |||
1564 | 1571 |
| |
1565 | 1572 |
| |
1566 | 1573 |
| |
| 1574 | + | |
| 1575 | + | |
1567 | 1576 |
| |
1568 | 1577 |
| |
1569 | 1578 |
| |
1570 | 1579 |
| |
1571 |
| - | |
| 1580 | + | |
1572 | 1581 |
| |
1573 |
| - | |
| 1582 | + | |
1574 | 1583 |
| |
1575 | 1584 |
| |
1576 | 1585 |
| |
| |||
2922 | 2931 |
| |
2923 | 2932 |
| |
2924 | 2933 |
| |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
2925 | 2941 |
| |
2926 | 2942 |
| |
2927 | 2943 |
| |
|
0 commit comments
Comments
(0)