From 3cd0f5ebcff4c8c8206e9839190c046b22cc4121 Mon Sep 17 00:00:00 2001 From: Dmitry Kuzmenko Date: Tue, 23 May 2017 11:52:05 +0300 Subject: [PATCH] Check master shut down correctly. --- tests/integration/shell/test_master.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/integration/shell/test_master.py b/tests/integration/shell/test_master.py index e3c9d5372b..e3433fc38e 100644 --- a/tests/integration/shell/test_master.py +++ b/tests/integration/shell/test_master.py @@ -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()