Check master shut down correctly.

This commit is contained in:
Dmitry Kuzmenko 2017-05-23 11:52:05 +03:00
parent 4ed0f8ed4e
commit 3cd0f5ebcf

View File

@ -157,3 +157,16 @@ class MasterTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMix
stderr=tests.integration.utils.decode_byte_list(stderr)
)
master.shutdown()
# Do the test again to check does master shut down correctly
stdout, stderr, status = master.run(
args=['-d'],
catch_stderr=True,
with_retcode=True,
)
self.assert_exit_status(
status, 'EX_OK',
message='correct usage',
stdout=stdout,
stderr=tests.integration.utils.decode_byte_list(stderr)
)
master.shutdown()