dumb-init/tests/help_message_test.py
2015-09-11 16:50:05 -07:00

13 lines
365 B
Python

from subprocess import PIPE
from subprocess import Popen
def test_exit_status(both_debug_modes, both_setsid_modes):
"""dumb-init should say something useful when called with no arguments, and
exit nonzero.
"""
proc = Popen(('dumb-init'), stderr=PIPE)
_, stderr = proc.communicate()
assert proc.returncode != 0
assert len(stderr) >= 50