From 6b51f1a353111450d898b748374ba7a3975fd72b Mon Sep 17 00:00:00 2001 From: Shubham Mishra Date: Thu, 21 May 2020 19:54:15 +0530 Subject: [PATCH] Added comment explaining the usage of the unpatched kill Signed-off-by: Shubham Mishra --- teuthology/test/test_exit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/test/test_exit.py b/teuthology/test/test_exit.py index 61c7a59758..939bcadfbd 100644 --- a/teuthology/test/test_exit.py +++ b/teuthology/test/test_exit.py @@ -22,6 +22,9 @@ class TestExiter(object): wraps=os.kill, ) + #Keep a copy of the unpatched kill and call this in place of os.kill + #In the Exiter objects, the os.kill calls are patched. + #So the call_count should be 1. self.kill_unpatched = os.kill self.m_kill = self.patcher_kill.start() -- 2.39.5