Bug 522115 Get crash stacks on Leak & Bloat Builders - fix runtest.py so that it uses the correct directory for looking for crash symbols. r=gozer,a=test-only
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 21 Oct 2009 16:26:47 +0100
changeset 4211 83e8ff7342e8e960dbb13b1d9f19b4e671eb6fa8
parent 4210 c24407db0ae1ac5c3bb6353e08bca04e91218cb5
child 4212 e747fcd384775c940de3a752539f85996adcc855
push id3290
push userbugzilla@standard8.plus.com
push dateWed, 21 Oct 2009 15:27:33 +0000
treeherdercomm-central@83e8ff7342e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgozer, test-only
bugs522115
Bug 522115 Get crash stacks on Leak & Bloat Builders - fix runtest.py so that it uses the correct directory for looking for crash symbols. r=gozer,a=test-only
mailnews/test/performance/bloat/runtest.py
--- a/mailnews/test/performance/bloat/runtest.py
+++ b/mailnews/test/performance/bloat/runtest.py
@@ -94,16 +94,18 @@ if options.objdir == "" or options.bin =
   sys.exit(1)
 
 OBJDIR = os.path.abspath(os.path.realpath(options.objdir))
 AUTOMATION_DIR = os.path.join(OBJDIR, 'mozilla', 'build')
 sys.path.append(AUTOMATION_DIR)
 import automation
 from automationutils import checkForCrashes
 
+SYMBOLS_PATH = os.path.abspath(os.path.join(AUTOMATION_DIR, automation.SYMBOLS_PATH))
+
 CWD = os.getcwd()
 SCRIPTDIR = os.path.abspath(os.path.realpath(os.path.dirname(sys.argv[0])))
 
 if automation.IS_MAC:
   if options.debug:
     APPBUNDLE = options.brand + 'Debug.app'
   else:
     APPBUNDLE = options.brand + '.app'
@@ -205,17 +207,17 @@ for cmd in COMMANDS:
     proc = automation.Process(binary, args, env = mailnewsEnv)
   except TypeError:
     proc = automation.Process([binary] + args, env = mailnewsEnv)
 
   status = proc.wait()
   if status != 0:
     print >> sys.stderr, "TEST-UNEXPECTED-FAIL | runtest.py | Exited with code %d during test run"%(status)
 
-  if checkForCrashes(os.path.join(PROFILE, "minidumps"), automation.SYMBOLS_PATH, cmd['name']):
+  if checkForCrashes(os.path.join(PROFILE, "minidumps"), SYMBOLS_PATH, cmd['name']):
     print >> sys.stderr, 'TinderboxPrint: ' + cmd['name'] + '<br/><em class="testfail">CRASH</em>'
     status = -1
 
   if status != 0:
     sys.exit(status)
 
   print >> sys.stderr, 'INFO | runtest.py | ' + cmd['name'] + ' executed successfully.'