Commit graph

39 commits

Author SHA1 Message Date
Chris Kuehl
256edaef74 Simplify dumb-init behavior using sigwait 2016-04-29 17:13:52 -07:00
Chris Kuehl
223da04e22 Fix flaky job control tests 2016-04-29 15:15:02 -07:00
Chris Kuehl
b579371582 Fix bit rot due to newer flake8 2016-03-11 13:42:56 -08:00
Chris Kuehl
d626878a0c Fix exit status when process exits via signal
This fixes https://github.com/Yelp/dumb-init/issues/59
2016-03-11 13:42:00 -08:00
Buck Evan
87545be699 Merge pull request #50 from chriskuehl/pipefail-zombies
Fix stretch itest missing "ps" command, use pipefail to catch it earlier in the future
2016-01-07 14:58:02 -08:00
Chris Kuehl
4b37e64a1a Set pipefail for test-zombies to not mask errors 2016-01-07 14:56:53 -08:00
Chris Kuehl
01f6064164 Fix typo in help message 2015-10-26 10:20:18 -07:00
Chris Kuehl
cd8f4bccf1 cli_test: update help message 2015-10-03 00:36:35 -07:00
Chris Kuehl
958c6420a5 Add command-line option sanity check tests 2015-10-02 17:54:06 -07:00
Chris Kuehl
6b7f0ce3fa Add standard command-line flags 2015-10-02 15:53:07 -07:00
Chris Kuehl
316f6b0d93 Prefix output with [dumb-init] 2015-10-02 10:51:09 -07:00
Chris Kuehl
2aa56d6aab Merge pull request #25 from chriskuehl/background-support
Properly respond to job control signals
2015-09-29 13:44:28 -07:00
Chris Kuehl
dd361496d1 tests/child_processes_test: fix py34 2015-09-29 10:54:20 -07:00
Chris Kuehl
d178fbaf52 Print better error message when exec fails 2015-09-29 10:49:08 -07:00
Chris Kuehl
a78ac8fe23 Exit nonzero if exec fails 2015-09-29 10:43:45 -07:00
Chris Kuehl
b42f376351 Add tests for background process support 2015-09-25 18:19:24 -07:00
Chris Kuehl
4b9d6927de Use mock.patch.dict to patch environment 2015-09-22 15:19:44 -07:00
Kent Wills
7825fda346 Merge pull request #24 from chriskuehl/ci-run-tox
Run tox in CI
2015-09-22 13:43:35 -07:00
Chris Kuehl
8b66e27897 Ensure tests don't pollute each others' environment
As much as possible, anyway...
2015-09-22 01:20:48 -07:00
Chris Kuehl
2ae2aceb28 Run tox in CI to better catch regressions 2015-09-18 11:06:08 -07:00
Chris Kuehl
d59a190a5d Send TERM to all children when the main child exists in setsid mode 2015-09-16 20:00:15 -07:00
Chris Kuehl
e6fd9233cb Python test fixes for lucid 2015-09-11 17:24:18 -07:00
Chris Kuehl
e3d9f84d6f Rewrite tests in Python using pytest 2015-09-11 16:50:05 -07:00
Kent Wills
7a648c54d1 python test-tty hotfix 2015-09-10 18:05:11 -07:00
Chris Kuehl
5b47ea8f34 Add basic test for zombies 2015-09-10 17:28:39 -07:00
Kent Wills
ed316ee24f minor changes 2015-09-10 17:01:49 -07:00
Kent Wills
d5f0be96d3 update docstrings, fix itest, add to dockerignore 2015-09-10 15:34:09 -07:00
Kent Wills
1b816df1b6 change setpgid to setsid 2015-09-10 15:34:09 -07:00
Chris Kuehl
8b4c7ebfb9 Reduce tests for exit status 2015-09-10 14:29:03 -07:00
Chris Kuehl
497b7d0fcc print-signals: switch shebang to sh 2015-09-03 15:53:14 -07:00
Chris Kuehl
508b8e29d2 Allow killing leftover processes to fail 2015-09-03 15:01:34 -07:00
Buck Golemon
d0e9a8d02a buck review 2015-08-28 18:21:51 -07:00
Chris Kuehl
807db9be27 Add process group support 2015-08-28 09:25:10 -07:00
Chris Kuehl
242d2c5d7d Switch to pkill instead of pgrep | xargs kill 2015-08-11 14:41:04 -07:00
Buck Golemon
47489106e2 buck's review 2015-08-11 14:31:08 -07:00
Chris Kuehl
129e39af34 Whitespace cleanup 2015-08-10 09:32:56 -07:00
Chris Kuehl
39dcc3c22c Properly kill print-signals in test-proxies-signals 2015-08-07 16:50:26 -07:00
Chris Kuehl
839d5c06cd Allow specifying path to dumb-init for tests 2015-08-07 16:04:30 -07:00
Chris Kuehl
2c3b93a86e Fix return code, add better help, add more tests 2015-08-06 14:31:49 -07:00