You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/09/06 16:30:48 UTC

[2/2] qpid-proton git commit: NO-JIRA: proctest.py prints commands.

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 <ac...@redhat.com>
Authored: Wed Sep 6 09:56:01 2017 -0400
Committer: Alan Conway <ac...@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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org