diff options
Diffstat (limited to 'infra/bots/recipe_modules/flavor/ios_flavor.py')
-rw-r--r-- | infra/bots/recipe_modules/flavor/ios_flavor.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/infra/bots/recipe_modules/flavor/ios_flavor.py b/infra/bots/recipe_modules/flavor/ios_flavor.py index 45b33448a1..976e840f93 100644 --- a/infra/bots/recipe_modules/flavor/ios_flavor.py +++ b/infra/bots/recipe_modules/flavor/ios_flavor.py @@ -65,11 +65,12 @@ class iOSFlavorUtils(gn_flavor.GNFlavorUtils): self._run_ios_script('rm', path) self._run_ios_script('mkdir', path) - def read_file_on_device(self, path): + def read_file_on_device(self, path, **kwargs): full = self.m.vars.skia_dir.join('platform_tools/ios/bin/ios_cat_file') - rc = self.m.run(self.m.step, + rv = self.m.run(self.m.step, name = 'cat_file %s' % path, cmd = [full, path], stdout=self.m.raw_io.output(), - infra_step=kInfraStep) - return rc.stdout.rstrip() if rc.stdout else rc.stdout + infra_step=kInfraStep, + **kwargs) + return rv.stdout.rstrip() if rv and rv.stdout else None |