]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Added comment explaining the usage of the unpatched kill
authorShubham Mishra <smishra99.iitkgp@gmail.com>
Thu, 21 May 2020 14:24:15 +0000 (19:54 +0530)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 14:19:20 +0000 (22:19 +0800)
Signed-off-by: Shubham Mishra <smishra99.iitkgp@gmail.com>
teuthology/test/test_exit.py

index 61c7a59758efd1c81ba0cee669f1c14271a7f26b..939bcadfbd12aa402490e7a2e3050e23e8acb44b 100644 (file)
@@ -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()