Skip to content
Browse files

bug 779247 - add copy/paste output to run_command and get_output_from…

…_command. r=callek

--HG--
extra : rebase_source : e9be7892059ffb38690c006983cf4911cac6ff91
  • Loading branch information...
1 parent a4dcbe7 commit f792dbe4df10464d69b45b800e801a145569f449 @escapewindow escapewindow committed Jul 31, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mozharness/base/script.py
View
4 mozharness/base/script.py
@@ -383,6 +383,8 @@ def run_command(self, command, cwd=None, error_list=None, parse_at_end=False,
self.info("Running command: %s in %s" % (command, cwd))
else:
self.info("Running command: %s" % command)
+ if isinstance(command, list):
+ self.info("Copy/paste: %s" % subprocess.list2cmdline(command))
if self.config.get('noop'):
self.info("(Dry run; skipping)")
return
@@ -444,6 +446,8 @@ def get_output_from_command(self, command, cwd=None,
self.info("Getting output from command: %s in %s" % (command, cwd))
else:
self.info("Getting output from command: %s" % command)
+ if isinstance(command, list):
+ self.info("Copy/paste: %s" % subprocess.list2cmdline(command))
# This could potentially return something?
if self.config.get('noop'):
self.info("(Dry run; skipping)")

0 comments on commit f792dbe

Please sign in to comment.
Something went wrong with that request. Please try again.