Bug 808545 - Tweak the exception message for runxpcshelltests.py profile cleanup failures; r=gps
authorEd Morley <emorley@mozilla.com>
Mon, 05 Nov 2012 18:29:20 +0000
changeset 112338 0a6cb7947e07189eb4d4673c0b15bd584e79e2db
parent 112337 0dea4f9a91330ce98542cb2d131e385e39d3c878
child 112339 f8cd6fa12a8bee4f601bea35b7f8be6e94969bce
push id23812
push useremorley@mozilla.com
push dateTue, 06 Nov 2012 14:01:34 +0000
treeherdermozilla-central@f4aeed115e54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs808545
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 808545 - Tweak the exception message for runxpcshelltests.py profile cleanup failures; r=gps
testing/xpcshell/runxpcshelltests.py
--- a/testing/xpcshell/runxpcshelltests.py
+++ b/testing/xpcshell/runxpcshelltests.py
@@ -890,17 +890,17 @@ class XPCShellTests(object):
           }
           self.kill(proc)
         # We don't want to delete the profile when running check-interactive
         # or check-one.
         if self.profileDir and not self.interactive and not self.singleFile:
           try:
             self.removeDir(self.profileDir)
           except Exception:
-            message = "TEST-UNEXPECTED-FAIL | %s | Failed to clean up the test profile directory: %s" % (name, sys.exc_info()[0])
+            message = "TEST-UNEXPECTED-FAIL | %s | Failed to clean up the test profile directory: %s" % (name, sys.exc_info()[1])
             self.log.error(message)
             print_stdout(stdout)
             print_stdout(traceback.format_exc())
 
             # What follows is code to dump the directory listing similar to ls.
             # This should only be needed until we track down the source of
             # failures on the buildbot machines.
             try: