Bug 1046694 - fix AttributeError in marionette tests. r=mgerva
authorSimone Bruno <sbruno@mozilla.com>
Tue, 16 Sep 2014 04:26:14 -0700
changeset 3177 304e039c701c
parent 3173 fab5e7003de4
child 3178 d75b03fc4d56
child 3179 f39276a525c4
push id2421
push usersbruno@mozilla.com
push dateTue, 16 Sep 2014 11:29:48 +0000
reviewersmgerva
bugs1046694
Bug 1046694 - fix AttributeError in marionette tests. r=mgerva
scripts/marionette.py
--- a/scripts/marionette.py
+++ b/scripts/marionette.py
@@ -412,29 +412,29 @@ class MarionetteTest(TestingMixin, Toolt
                 if not os.access(binary, os.F_OK):
                     binary = os.path.join(binary_path, 'b2g')
 
             manifest = os.path.join(dirs['abs_gaiatest_dir'], 'gaiatest', 'tests',
                                     'tbpl-manifest.ini')
 
 
             if self.config.get('this_chunk') and self.config.get('total_chunks'):
-                cmd.extend(self._build_arg('--this-chunk', self.config.get('this_chunk')))
-                cmd.extend(self._build_arg('--total-chunks', self.config.get('total_chunks')))                
+                cmd.extend(['--this-chunk', self.config.get('this_chunk')])
+                cmd.extend(['--total-chunks', self.config.get('total_chunks')])
 
             # Bug 1046694
             # using a different manifest if a specific gip-suite is specified
             # --type parameter depends on gip-suite
             if self.config.get('gip_suite'):
                 manifest = os.path.join(dirs['abs_gaiatest_dir'], 'gaiatest', 'tests', self.config.get('gip_suite'),
                                         'manifest.ini')
                 if self.config.get('gip_suite') == "functional":
-                    cmd.extend(self._build_arg('--type', "b2g-external"))
+                    cmd.extend(['--type', "b2g-external"])
                 else:
-                    cmd.extend(self._build_arg('--type', "b2g"))
+                    cmd.extend(['--type', "b2g"])
         else:
             # Marionette or Marionette-webapi tests
             cmd = [python, '-u', os.path.join(dirs['abs_marionette_dir'],
                                               'runtests.py')]
 
             manifest = os.path.join(dirs['abs_marionette_tests_dir'],
                                     self.config['test_manifest'])