Author: justi9
Date: 2010-06-24 15:18:52 -0400 (Thu, 24 Jun 2010)
New Revision: 4048
Modified:
mgmt/newdata/cumin/bin/cumin-smoke-test
Log:
Improve submit test case
Modified: mgmt/newdata/cumin/bin/cumin-smoke-test
===================================================================
--- mgmt/newdata/cumin/bin/cumin-smoke-test 2010-06-24 13:34:15 UTC (rev 4047)
+++ mgmt/newdata/cumin/bin/cumin-smoke-test 2010-06-24 19:18:52 UTC (rev 4048)
@@ -50,6 +50,8 @@
try:
test(cumin, cursor)
except:
+ print_exc()
+
print "FAILES!"
try:
@@ -75,14 +77,16 @@
cls = cumin.model.com_redhat_grid.Scheduler
obj = cls.get_object(cursor)
- print "Submitting to", obj,
+ assert obj
+ print "Submitting to", obj.Name,
+
ad = {"Cmd": "/bin/sleep",
"Args": "5m",
"JobUniverse": 5,
"Requirements": "TRUE",
"Iwd": "/tmp",
- "Owner": "gridmonkey@%s" % obj.Machine,
+ "Owner": "gridmonkey",
"!!descriptors": {"Requirements":
"com.redhat.grid.Expression"}}
completed = Event()
Show replies by date