Add longer timeout to runner.py draft
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Sat, 09 Nov 2019 11:00:34 +0900
changeset 81082 cfb1929d58ea2de6bc4ac829a317c29e9098cc77
parent 81081 42b107454e323b072d9245146c824f4d0df5d367
child 81083 55623f80ea7a85be826669e1be306a30ea104402
push id9744
push userishikawa@yk.rim.or.jp
push dateSat, 09 Nov 2019 02:01:06 +0000
treeherdertry-comm-central@56c83244ac0e [default view] [failures only]
Add longer timeout to runner.py
mozilla-M-C-020-add-timeout-1200-runner.patch
new file mode 100644
--- /dev/null
+++ b/mozilla-M-C-020-add-timeout-1200-runner.patch
@@ -0,0 +1,30 @@
+# HG changeset patch
+# User ISHIKAWA,Chiaki <ishikawa@yk.rim.or.jp>
+# Parent  29ef79db4aa0dcf1cd028340d64e7262ccc3465f
+Add longer timeout to runner.py
+
+        if timeout < 1200. :
+            timeout = 1200.
+
+diff --git a/testing/mozbase/mozrunner/mozrunner/base/runner.py b/testing/mozbase/mozrunner/mozrunner/base/runner.py
+--- a/testing/mozbase/mozrunner/mozrunner/base/runner.py
++++ b/testing/mozbase/mozrunner/mozrunner/base/runner.py
+@@ -98,16 +98,18 @@ class BaseRunner(object):
+         :param debug_args: arguments for a debugger
+         :param interactive: uses subprocess.Popen directly
+         :param timeout: see process_handler.run()
+         :param outputTimeout: see process_handler.run()
+         :returns: the process id
+ 
+         :raises: RunnerNotStartedError
+         """
++        if timeout < 1200. :
++            timeout = 1200.
+         self.timeout = timeout
+         self.output_timeout = outputTimeout
+         cmd = self.command
+ 
+         # ensure the runner is stopped
+         self.stop()
+ 
+         # attach a debugger, if specified