From 226a11db6f5550095b8426936e9e2440d88a0390 Mon Sep 17 00:00:00 2001 From: Bill King Date: Wed, 21 Sep 2011 11:30:22 +0200 Subject: [PATCH] More sensible options (with fallback) Change-Id: I32afb2ed7e690d3dfc9b2ba47d2007d03d29d2cb Reviewed-on: http://codereview.qt-project.org/5299 Reviewed-by: Qt Sanity Bot Reviewed-by: Christian Stenger --- tests/system/shared/mainwin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/system/shared/mainwin.py b/tests/system/shared/mainwin.py index 6e5d0b06db1..95199e2d592 100644 --- a/tests/system/shared/mainwin.py +++ b/tests/system/shared/mainwin.py @@ -19,6 +19,12 @@ def openCmakeProject(projectPath): type(findObject("{name='fileNameEdit' type='QLineEdit'}"), projectPath) clickButton(findObject("{text='Open' type='QPushButton'}")) clickButton(waitForObject(":CMake Wizard.Next_QPushButton", 20000)) + generatorCombo = waitForObject(":Generator:_QComboBox") + index = generatorCombo.findText("MinGW Generator (MinGW from SDK)") + if index == -1: + index = generatorCombo.findText("NMake Generator (Microsoft Visual C++ Compiler 9.0 (x86))") + if index != -1: + generatorCombo.setCurrentIndex(index) clickButton(waitForObject(":CMake Wizard.Run CMake_QPushButton", 20000)) clickButton(waitForObject(":CMake Wizard.Finish_QPushButton", 60000))