Tests: IDE: explicitely wait for build success rather than just stdout to become silent. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 02 Feb 2023 17:17:04 +0100
branchwxPython4
changeset 3720 d0a9c01ee7a5
parent 3719 4906295e0be6
child 3721 6365e33fb11f
Tests: IDE: explicitely wait for build success rather than just stdout to become silent.
tests/ide_tests/debug_project.sikuli/debug_project.py
tests/ide_tests/edit_project.sikuli/edit_project.py
tests/ide_tests/new_project.sikuli/new_project.py
tests/ide_tests/opcua_browse.sikuli/opcua_browse.py
tests/ide_tests/opcua_browse_encrypted.sikuli/opcua_browse_encrypted.py
tests/ide_tests/run_python_exemple.sikuli/run_python_exemple.py
--- a/tests/ide_tests/debug_project.sikuli/debug_project.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/debug_project.sikuli/debug_project.py	Thu Feb 02 17:17:04 2023 +0100
@@ -19,7 +19,7 @@
     
     app.k.Build()
     
-    app.waitForChangeAndIdleStdout()
+    app.waitPatternInStdout("Successfully built.", 10)
     
     app.k.Connect()
     
--- a/tests/ide_tests/edit_project.sikuli/edit_project.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/edit_project.sikuli/edit_project.py	Thu Feb 02 17:17:04 2023 +0100
@@ -43,7 +43,7 @@
 
     app.k.Build()
 
-    app.waitForChangeAndIdleStdout()
+    app.waitPatternInStdout("Successfully built.", 10)
 
     app.k.Connect()
 
--- a/tests/ide_tests/new_project.sikuli/new_project.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/new_project.sikuli/new_project.py	Thu Feb 02 17:17:04 2023 +0100
@@ -117,7 +117,7 @@
     
     app.k.Build()
     
-    app.waitIdleStdout(5,30)
+    app.waitPatternInStdout("Successfully built.", 10)
     
     app.k.Connect()
     
--- a/tests/ide_tests/opcua_browse.sikuli/opcua_browse.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/opcua_browse.sikuli/opcua_browse.py	Thu Feb 02 17:17:04 2023 +0100
@@ -43,7 +43,7 @@
 
     app.k.Build()
 
-    app.waitForChangeAndIdleStdout()
+    app.waitPatternInStdout("Successfully built.", 10)
 
     app.k.Connect()
 
--- a/tests/ide_tests/opcua_browse_encrypted.sikuli/opcua_browse_encrypted.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/opcua_browse_encrypted.sikuli/opcua_browse_encrypted.py	Thu Feb 02 17:17:04 2023 +0100
@@ -45,7 +45,7 @@
 
     app.k.Build()
 
-    app.waitForChangeAndIdleStdout()
+    app.waitPatternInStdout("Successfully built.", 10)
 
     app.k.Connect()
 
--- a/tests/ide_tests/run_python_exemple.sikuli/run_python_exemple.py	Thu Feb 02 16:22:52 2023 +0100
+++ b/tests/ide_tests/run_python_exemple.sikuli/run_python_exemple.py	Thu Feb 02 17:17:04 2023 +0100
@@ -20,7 +20,7 @@
     
     app.k.Build()
     
-    app.waitForChangeAndIdleStdout()
+    app.waitPatternInStdout("Successfully built.", 10)
     
     app.k.Connect()