Tests: use expedited termination of IDE with SIGTERM instead of normal close wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sun, 01 Jan 2023 22:39:41 +0100
branchwxPython4
changeset 3713 cf7c91183995
parent 3712 cea2005bf2c9
child 3714 c3a13fcbda3a
Tests: use expedited termination of IDE with SIGTERM instead of normal close

Work around test not finishing when IDE ask for confirmation on exit when
project is modified.
tests/ide_tests/sikuliberemiz.py
--- a/tests/ide_tests/sikuliberemiz.py	Sun Jan 01 22:33:29 2023 +0100
+++ b/tests/ide_tests/sikuliberemiz.py	Sun Jan 01 22:39:41 2023 +0100
@@ -347,8 +347,12 @@
         self.ReportScreenShot("Drop: (" + repr(dst) + ")")
 
     def close(self):
-        self.sikuliapp.close()
-        self.sikuliapp = None
+
+        self.ReportScreenShot("Close app")
+        os.kill(self.proc.pid, signal.SIGTERM)
+        #self.sikuliapp.close()
+        #self.sikuliapp = None
+
         self.report.write("""
   </body>
 </html>""")