[test/ux] add a warning when test from FirefoxHelper timeout
authorLaurent Peuch <cortex@worlddomination.be>
Tue, 17 Dec 2019 17:54:09 +0100
changeset 12822 6a3634515bd5
parent 12821 fce106b9977d
child 12823 e830ace445bf
[test/ux] add a warning when test from FirefoxHelper timeout
cubicweb/devtools/qunit.py
--- a/cubicweb/devtools/qunit.py	Tue Dec 17 17:19:15 2019 +0100
+++ b/cubicweb/devtools/qunit.py	Tue Dec 17 17:54:09 2019 +0100
@@ -177,7 +177,10 @@
                     else:
                         yield test_name, self.fail, (msg, )
                 except Empty:
+                    # Empty means nothing was appended to test_queue within timeout
                     error = True
+                    print("WARNING: timeout while trying to get the next test result from "
+                          "FirefoxHelper queue, see log file '%s' for more info" % browser.log_file)
                     yield test_file, timeout_failure, (test_file, timeout, test_count)
 
         if test_count <= 0 and not error: