diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-09-07 08:26:01 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-09-07 12:48:28 +0000 |
commit | 28ab852e538643a0762ce6be5b0fee1daa41f3a9 (patch) | |
tree | f4e951d58c4f507aabf4922bb00120e7d4e1f98c /tests | |
parent | 1a64efd863507e47d161c82b2ffbae31c88ed452 (diff) |
Squish: Wait for a clean shutdown when restarting QC
This fixes a race condition in tst_CSUP06 where the next run
of QC removed .user* but the first instance was not completely
finished with the shutdown process. The .user files of the project
got updated (or recreated) before the second instance tried to
open the same project again. Ensure the first instance is closed
to be sure that project's .user files got created or updated
before the second instance tries to remove and re-open them.
Follow the same approach for other tests to avoid the same issue
later on.
Change-Id: I37721f4dd647f9bbf7c6fed6e753a2906e30db81
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP01/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP02/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP03/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP04/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP05/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_CSUP/tst_CSUP06/test.py | 1 | ||||
-rw-r--r-- | tests/system/suite_editors/tst_memberoperator/test.py | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py index 1031ce75dcb..63779811f6f 100644 --- a/tests/system/suite_CSUP/tst_CSUP01/test.py +++ b/tests/system/suite_CSUP/tst_CSUP01/test.py @@ -133,3 +133,4 @@ def main(): # exit qt creator invokeMenuItem("File", "Save All") invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP02/test.py b/tests/system/suite_CSUP/tst_CSUP02/test.py index f44f9bc093a..147f1b09350 100644 --- a/tests/system/suite_CSUP/tst_CSUP02/test.py +++ b/tests/system/suite_CSUP/tst_CSUP02/test.py @@ -87,3 +87,4 @@ def main(): invokeMenuItem('File', 'Close "main.cpp"') # exit qt creator invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP03/test.py b/tests/system/suite_CSUP/tst_CSUP03/test.py index 90e60322fc9..7565af28307 100644 --- a/tests/system/suite_CSUP/tst_CSUP03/test.py +++ b/tests/system/suite_CSUP/tst_CSUP03/test.py @@ -123,3 +123,4 @@ def main(): snooze(1) # "Close All" might be disabled invokeMenuItem('File', 'Close All') invokeMenuItem('File', 'Exit') + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP04/test.py b/tests/system/suite_CSUP/tst_CSUP04/test.py index c910de02b5f..6fc59a3caad 100644 --- a/tests/system/suite_CSUP/tst_CSUP04/test.py +++ b/tests/system/suite_CSUP/tst_CSUP04/test.py @@ -78,3 +78,4 @@ def main(): validateSearchResult(5 if JIRA.isBugStillOpen(2863) else 3) invokeMenuItem("File", "Close All") invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP05/test.py b/tests/system/suite_CSUP/tst_CSUP05/test.py index e24d80ebf92..62be1a02e19 100644 --- a/tests/system/suite_CSUP/tst_CSUP05/test.py +++ b/tests/system/suite_CSUP/tst_CSUP05/test.py @@ -94,3 +94,4 @@ def main(): invokeMenuItem("File", "Close All") clickButton(waitForObject(":Save Changes.Do not Save_QPushButton")) invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP06/test.py b/tests/system/suite_CSUP/tst_CSUP06/test.py index 4cdb74c53ea..9e094b0a0dd 100644 --- a/tests/system/suite_CSUP/tst_CSUP06/test.py +++ b/tests/system/suite_CSUP/tst_CSUP06/test.py @@ -181,3 +181,4 @@ def main(): # editor must be closed to get the second code model applied on re-opening the file invokeMenuItem('File', 'Close "main.cpp"') invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_editors/tst_memberoperator/test.py b/tests/system/suite_editors/tst_memberoperator/test.py index 3b3133af9d0..d7b20f8b3d7 100644 --- a/tests/system/suite_editors/tst_memberoperator/test.py +++ b/tests/system/suite_editors/tst_memberoperator/test.py @@ -54,3 +54,4 @@ def main(): snooze(1) invokeMenuItem("File", "Close All") invokeMenuItem("File", "Exit") + waitForCleanShutdown() |