WIP: print test progress, 2

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3682984c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3682984c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3682984c

Branch: refs/heads/fix
Commit: 3682984cd638cb7dddf2351ae84f18074821728f
Parents: 9da5b56
Author: Alan Conway <[email protected]>
Authored: Tue Jan 26 14:15:41 2016 -0500
Committer: Alan Conway <[email protected]>
Committed: Tue Jan 26 14:25:32 2016 -0500

----------------------------------------------------------------------
 examples/cpp/engine/example_test.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3682984c/examples/cpp/engine/example_test.py
----------------------------------------------------------------------
diff --git a/examples/cpp/engine/example_test.py 
b/examples/cpp/engine/example_test.py
index ef42455..b3b9c72 100644
--- a/examples/cpp/engine/example_test.py
+++ b/examples/cpp/engine/example_test.py
@@ -32,11 +32,15 @@ class ExampleTest(unittest.TestCase):
     """Base class for tests that run example programs and verify their 
output."""
 
     def setUp(self):
+        print >>sys.stderr, "FIXME setUp", self.id()
         self.procs = []
 
     def tearDown(self):
+        print >>sys.stderr, "FIXME tearDown", self.id()
         for p in self.procs:
-            try: p.kill()
+            try:
+                print >>sys.stderr, "FIXME kill", p.args
+                p.kill()
             except: pass
 
     def cmdline(self, *args):
@@ -77,6 +81,7 @@ class ExampleTest(unittest.TestCase):
 
     def background(self, *args):
         """Run executable in the backround, return the popen"""
+        print >>sys.stderr, "FIXME backround", args
         p = Popen(self.cmdline(*args), stdout=PIPE, stderr=sys.stderr)
         p.args = args               # Save arguments for debugging output
         self.procs.append(p)
@@ -84,6 +89,7 @@ class ExampleTest(unittest.TestCase):
 
     def verify(self, p):
         """Wait for executable to exit and verify status, return the output"""
+        print >>sys.stderr, "FIXME verify", p.args
         try:
             out, err = p.communicate()
         except Exception as e:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to