NO-JIRA: proctest.py prints commands. If env. var PROCTEST_VERBOSE is set to a non-empty string, the example test driver, proctest.py, will print the full command of each sub-process executed to stdout.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e279e4a1 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e279e4a1 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e279e4a1 Branch: refs/heads/master Commit: e279e4a1890c26728e515fdacb43f4a4678c6177 Parents: 28ac86c Author: Alan Conway <acon...@redhat.com> Authored: Wed Sep 6 09:56:01 2017 -0400 Committer: Alan Conway <acon...@redhat.com> Committed: Wed Sep 6 12:30:36 2017 -0400 ---------------------------------------------------------------------- tools/py/proctest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e279e4a1/tools/py/proctest.py ---------------------------------------------------------------------- diff --git a/tools/py/proctest.py b/tools/py/proctest.py index fc4450f..7a601e5 100644 --- a/tools/py/proctest.py +++ b/tools/py/proctest.py @@ -102,7 +102,8 @@ class Proc(Popen): else: vg += ["--tool=memcheck", "--leak-check=full", "--leak-resolution=low"] self.args = vg + self.args - self._out.flush() + if os.getenv("PROCTEST_VERBOSE"): + sys.stderr.write("\n== running == "+" ".join(self.args)+"\n") try: Popen.__init__(self, self.args, stdout=self._out, stderr=STDOUT, **kwargs) except OSError, e: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org