[rhmessaging-commits] rhmessaging commits: r4029 - mgmt/newdata/cumin/bin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Wed Jun 16 14:27:32 EDT 2010
Author: justi9
Date: 2010-06-16 14:27:31 -0400 (Wed, 16 Jun 2010)
New Revision: 4029
Modified:
mgmt/newdata/cumin/bin/cumin-smoke-test
Log:
Properly bracket section between cumin start and stop
Modified: mgmt/newdata/cumin/bin/cumin-smoke-test
===================================================================
--- mgmt/newdata/cumin/bin/cumin-smoke-test 2010-06-16 18:20:33 UTC (rev 4028)
+++ mgmt/newdata/cumin/bin/cumin-smoke-test 2010-06-16 18:27:31 UTC (rev 4029)
@@ -38,24 +38,24 @@
cumin.start()
- conn = cumin.database.get_connection()
- cursor = conn.cursor()
+ try:
+ conn = cumin.database.get_connection()
+ cursor = conn.cursor()
- # cls = cumin.model.org_apache_qpid_broker.Broker XXX fails
- cls = cumin.model.com_redhat_grid.Scheduler
- obj = cls.get_object(cursor)
+ # cls = cumin.model.org_apache_qpid_broker.Broker XXX fails
+ cls = cumin.model.com_redhat_grid.Scheduler
+ obj = cls.get_object(cursor)
- print "Calling echo on", obj
+ print "Calling echo on", obj
- completed = Event()
-
- def completion(x, y):
- print x, y
- completed.set()
+ completed = Event()
+
+ def completion(x, y):
+ print x, y
+ completed.set()
- cumin.session.call_method(completion, obj, "echo", (1, "Hello!"))
+ cumin.session.call_method(completion, obj, "echo", (1, "Hello!"))
- try:
completed.wait()
finally:
cumin.stop()
More information about the rhmessaging-commits
mailing list