From 4667371b9a0a901602b606be120f334f0492d2e1 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 21 Feb 2012 12:42:45 +0100 Subject: Squish: Add timeout for cli test Change-Id: Id7a8a01d48cd78e98edad9885ecb41360e62e649 Reviewed-by: Bill King --- tests/system/suite_debugger/tst_cli_output_console/test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/system/suite_debugger/tst_cli_output_console/test.py') diff --git a/tests/system/suite_debugger/tst_cli_output_console/test.py b/tests/system/suite_debugger/tst_cli_output_console/test.py index 6512e5bb9b..3d04ceda26 100644 --- a/tests/system/suite_debugger/tst_cli_output_console/test.py +++ b/tests/system/suite_debugger/tst_cli_output_console/test.py @@ -41,7 +41,9 @@ def main(): test.log("Running application") runControlFinished = False clickButton(waitForObject("{type='Core::Internal::FancyToolButton' text='Run' visible='1'}", 20000)) - waitFor("runControlFinished==True") + waitFor("runControlFinished==True", 20000) + if not runControlFinished: + test.warning("Waiting for runControlFinished timed out") appOutput = str(waitForObject("{type='Core::OutputWindow' unnamed='1' visible='1'}", 20000).plainText) verifyOutput(appOutput, outputStdOut, "std::cout", "Application Output") verifyOutput(appOutput, outputStdErr, "std::cerr", "Application Output") @@ -53,7 +55,9 @@ def main(): invokeMenuItem("Debug", "Start Debugging", "Start Debugging") JIRA.performWorkaroundIfStillOpen(6853, JIRA.Bug.CREATOR, config) handleDebuggerWarnings(config) - waitFor("runControlFinished==True") + waitFor("runControlFinished==True", 20000) + if not runControlFinished: + test.warning("Waiting for runControlFinished timed out") try: debuggerLog = takeDebuggerLog() if not "MSVC" in config: -- cgit v1.2.1