Bug 1549949 Errors on launching activities are causing timeouts r=perftest-reviewers,davehunt
authorFlorin Strugariu <fstrugariu@mozilla.com>
Fri, 10 May 2019 09:32:00 +0000
changeset 535252 7b99b4edde300fb943804f5709064fba5e493a8e
parent 535251 daa2837789242ad8e01798e97fc986509a2e680e
child 535253 012ce6437a4cbb2bdffb1d641dd08f0a4ca66b75
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersperftest-reviewers, davehunt
bugs1549949
milestone68.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 1549949 Errors on launching activities are causing timeouts r=perftest-reviewers,davehunt Differential Revision: https://phabricator.services.mozilla.com/D30343
testing/raptor/raptor/raptor.py
--- a/testing/raptor/raptor/raptor.py
+++ b/testing/raptor/raptor/raptor.py
@@ -901,16 +901,21 @@ class RaptorAndroid(Raptor):
             else:
                 self.device.launch_activity(self.config['binary'],
                                             self.config['activity'],
                                             self.config['intent'],
                                             extra_args=extra_args,
                                             url='about:blank',
                                             e10s=True,
                                             fail_if_running=False)
+
+            # Check if app has started and it's running
+            if not self.device.process_exist(self.config['binary']):
+                raise Exception("Error launching %s. App did not start properly!" %
+                                self.config['binary'])
         except Exception as e:
             self.log.error("Exception launching %s" % self.config['binary'])
             self.log.error("Exception: %s %s" % (type(e).__name__, str(e)))
             if self.config['power_test']:
                 finish_android_power_test(self, test_name)
             if self.config['cpu_test']:
                 generate_android_cpu_profile(self, test_name)
             raise