Bug 808417 - remotereftest.py should print the actual exception if one occurred runTests(); r=jmaher
authorEd Morley <emorley@mozilla.com>
Mon, 05 Nov 2012 13:03:54 +0000
changeset 112299 4222b4c6a3e93ade8ae84c966d85cc9d3e9ea612
parent 112298 a519a3f18f39e032b942e8eee1be8c6aedcb01ca
child 112300 267a4eb4b2368cc685847f7207ca9c843c84864d
push id23809
push useremorley@mozilla.com
push dateMon, 05 Nov 2012 15:24:12 +0000
treeherdermozilla-central@358c9830d166 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs808417
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 808417 - remotereftest.py should print the actual exception if one occurred runTests(); r=jmaher
layout/tools/reftest/remotereftest.py
--- a/layout/tools/reftest/remotereftest.py
+++ b/layout/tools/reftest/remotereftest.py
@@ -1,16 +1,17 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import sys
 import os
 import time
 import tempfile
+import traceback
 
 # We need to know our current directory so that we can serve our test files from it.
 SCRIPT_DIRECTORY = os.path.abspath(os.path.realpath(os.path.dirname(sys.argv[0])))
 
 from runreftest import RefTest
 from runreftest import ReftestOptions
 from automation import Automation
 import devicemanager, devicemanagerADB, devicemanagerSUT
@@ -438,17 +439,18 @@ def main(args):
     retVal = 0
     try:
         cmdlineArgs = ["-reftest", manifest]
         if options.bootstrap:
             cmdlineArgs = []
         dm.recordLogcat()
         reftest.runTests(manifest, options, cmdlineArgs)
     except:
-        print "TEST-UNEXPECTED-FAIL | | exception while running reftests"
+        print "Automation Error: Exception caught while running tests"
+        traceback.print_exc()
         retVal = 1
 
     reftest.stopWebServer(options)
     try:
         logcat = dm.getLogcat()
         print ''.join(logcat[-500:-1])
         print dm.getInfo()
     except devicemanager.DMError: