Revision: 3249
Author: jussi.ao.malinen
Date: Mon May 10 23:50:53 2010
Log: trying to find out why signaling tests randomly get stuck on CI.
http://code.google.com/p/robotframework/source/detail?r=3249

Modified:
 /trunk/atest/robot/running/ProcessManager.py
 /trunk/atest/robot/running/stopping_with_signal.txt

=======================================
--- /trunk/atest/robot/running/ProcessManager.py        Mon May 10 03:59:07 2010
+++ /trunk/atest/robot/running/ProcessManager.py        Mon May 10 23:50:53 2010
@@ -39,6 +39,10 @@
         self.wait_until_finished()
         return self._stderr

+    def log_stdout_and_stderr(self):
+        print "stdout: ", self._process.stdout.read()
+        print "stderr: ", self._process.stderr.read()
+
     def wait_until_finished(self):
         if self._process.returncode is None:
             self._stdout, self._stderr = self._process.communicate()
=======================================
--- /trunk/atest/robot/running/stopping_with_signal.txt Mon May 10 01:27:04 2010 +++ /trunk/atest/robot/running/stopping_with_signal.txt Mon May 10 23:50:53 2010
@@ -44,12 +44,16 @@
     Check Tests Have Been Forced To Shutdown

 Two Signals Should Stop Test Execution Forcefully When Test Timeout Is Used
+    [timeout]  1 minute
     Start And Send Signal  test_timeout.txt  Two Signals  SIGINT  2s
     Check Tests Have Been Forced To Shutdown
+    [teardown]  Log Info From Process

Two Signals Should Stop Test Execution Forcefully When Keyword Timeout Is Used
+    [timeout]  1 minute
     Start And Send Signal  keyword_timeout.txt  Two Signals  SIGINT  2s
     Check Tests Have Been Forced To Shutdown
+    [teardown]  Log Info From Process

One Signal Should Stop Test Execution Gracefully And Test Case And Suite Teardowns Should Be Run
     Start And Send Signal  with_teardown.txt  One Signal  SIGINT  0s
@@ -110,3 +114,6 @@
        send terminate  ${signal}
        Busy Sleep  1
        send terminate  ${signal}
+
+Log Info From Process
+    Run Keyword If Test Failed  Log Stdout And Stderr

Reply via email to