Bug 1233311 - Avoid python exception on Android cppunit time-out; r=jmaher
authorGeoff Brown <gbrown@mozilla.com>
Fri, 18 Dec 2015 12:17:07 -0700
changeset 312166 ea5ffb7d046931176a1f981caf75f79eebff676e
parent 312165 cf947522f851039a66ec1c59bf61f2589972c5c0
child 312167 cdc2bfed4faad7297f1ccf100a62b859a301563f
push id5703
push userraliiev@mozilla.com
push dateMon, 07 Mar 2016 14:18:41 +0000
treeherdermozilla-beta@31e373ad5b5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1233311
milestone46.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 1233311 - Avoid python exception on Android cppunit time-out; r=jmaher
testing/remotecppunittests.py
--- a/testing/remotecppunittests.py
+++ b/testing/remotecppunittests.py
@@ -166,17 +166,17 @@ class RemoteCPPUnitTests(cppunittests.CP
             self.device.getDirectory(self.remote_home_dir, tempdir)
             if mozcrash.check_for_crashes(tempdir, symbols_path,
                                           test_name=basename):
                 self.log.test_end(basename, status='CRASH', expected='PASS')
                 return False
         result = returncode == 0
         if not result:
             self.log.test_end(basename, status='FAIL', expected='PASS',
-                              message=("test failed with return code %d" %
+                              message=("test failed with return code %s" %
                                        returncode))
         else:
             self.log.test_end(basename, status='PASS', expected='PASS')
         return result
 
 class RemoteCPPUnittestOptions(cppunittests.CPPUnittestOptions):
     def __init__(self):
         cppunittests.CPPUnittestOptions.__init__(self)