Bug 1582328 - Get better error messages when a mozmill test file has a problem; r=mkmelin DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 19 Sep 2019 20:41:09 +1200
changeset 36864 14db01bcabd2197e6cdb86b3bcde3b7246a7ab22
parent 36863 315a09d57f1b8ab47495af5a80c19f8fafe11813
child 36865 d4028b82f6b6fd19d41fe0cc45ab6482f5c53d52
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersmkmelin
bugs1582328
Bug 1582328 - Get better error messages when a mozmill test file has a problem; r=mkmelin DONTBUILD
mail/test/resources/mozmill/mozmill/extension/content/modules/frame.jsm
mail/test/resources/mozmill/setup.py
--- a/mail/test/resources/mozmill/mozmill/extension/content/modules/frame.jsm
+++ b/mail/test/resources/mozmill/mozmill/extension/content/modules/frame.jsm
@@ -138,18 +138,18 @@ var loadFile = function(path, collector)
     var obj = {
       filename: path,
       passed: 0,
       failed: 1,
       passes: [],
       fails: [
         {
           exception: {
-            message: e.message,
-            filename: e.filename,
+            message: e.message || e.toString(),
+            fileName: e.filename || e.fileName,
             lineNumber: e.lineNumber,
           },
         },
       ],
       name: "<TOP_LEVEL>",
     };
     events.fireEvent("endTest", obj);
   }
--- a/mail/test/resources/mozmill/setup.py
+++ b/mail/test/resources/mozmill/setup.py
@@ -36,17 +36,17 @@
 # ***** END LICENSE BLOCK *****
 
 from setuptools import setup, find_packages
 
 desc = """UI Automation tool for Mozilla applications."""
 summ = """A tool for full UI automation of Mozilla applications."""
 
 PACKAGE_NAME = "mozmill_thunderbird"
-PACKAGE_VERSION = "1.6.3"
+PACKAGE_VERSION = "1.6.4"
 
 setup(name=PACKAGE_NAME,
       version=PACKAGE_VERSION,
       description=desc,
       long_description=summ,
       author='Mozilla, Mikeal Rogers',
       author_email='mikeal.rogers@gmail.com',
       url='http://github.com/mozautomation/mozmill',