Bug 818738 - Open resultfile with 'w' instead of 'a', a=test-only
authorJonathan Griffin <jgriffin@mozilla.com>
Fri, 07 Dec 2012 10:38:13 -0800
changeset 126457 24fd3b935a63fa53936376496f7757b00c37562b
parent 126456 26910bf3ff350f240774eaf6fe2f50c75e3219b7
child 126458 4eb4b9205aa4b7d61f95fd682c836aaf15d9af1e
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs818738
milestone20.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 818738 - Open resultfile with 'w' instead of 'a', a=test-only
testing/tps/tps/testrunner.py
--- a/testing/tps/tps/testrunner.py
+++ b/testing/tps/tps/testrunner.py
@@ -129,17 +129,17 @@ class TPSTestRunner(object):
     f.write(msg)
     f.close()
     if printToConsole:
       print msg
 
   def writeToResultFile(self, postdata, body=None,
                         sendTo='crossweave@mozilla.com'):
     """Writes results to test file"""
-    f = open(self.resultfile, 'a')
+    f = open(self.resultfile, 'w')
     if body is not None:
       postdata['body'] = body
     if self.numpassed is not None:
       postdata['numpassed'] = self.numpassed
     if self.numfailed is not None:
       postdata['numfailed'] = self.numfailed
     if self.firefoxRunner and self.firefoxRunner.url:
       postdata['firefoxrunnerurl'] = self.firefoxRunner.url