From: <ba...@us...> - 2008-10-15 23:58:15
|
Revision: 1100 http://omc.svn.sourceforge.net/omc/?rev=1100&view=rev Author: bartw Date: 2008-10-15 23:58:06 +0000 (Wed, 15 Oct 2008) Log Message: ----------- a bit of cleanup Modified Paths: -------------- cmpi-bindings/trunk/test/python/TestIndications.py Modified: cmpi-bindings/trunk/test/python/TestIndications.py =================================================================== --- cmpi-bindings/trunk/test/python/TestIndications.py 2008-10-15 23:34:36 UTC (rev 1099) +++ cmpi-bindings/trunk/test/python/TestIndications.py 2008-10-15 23:58:06 UTC (rev 1100) @@ -147,7 +147,7 @@ global _shutdown global _insts_received global _num_to_send - print inst['IndicationTime'], inst['Description'] + sys.stdout.write('.'); sys.stdout.flush() _lock.acquire() _insts_received+= 1 if _num_to_send == _insts_received: @@ -162,15 +162,16 @@ subcop = createSubscription(conn) time.sleep(1) conn.InvokeMethod('reset_indication_count', 'Test_UpcallAtom') + print 'Waiting for %s indications...' % _num_to_send countsent,outs = conn.InvokeMethod('send_indications', 'Test_UpcallAtom', num_to_send=_num_to_send) numsent,outs = conn.InvokeMethod('get_indication_send_count', 'Test_UpcallAtom') deleteSubscription(conn, subcop) if (countsent != numsent): - print("send_indications NumSent(%d) doesn't match get_indication_send_count NumSent(%d)"%(countsent, numsent)); + print("\nsend_indications NumSent(%d) doesn't match get_indication_send_count NumSent(%d)\n"%(countsent, numsent)); sys.exit(1) - for i in xrange(10): + for i in xrange(20): _lock.acquire() if _shutdown: reactor.stop() @@ -184,7 +185,10 @@ thread = threading.Thread(target=threadfunc) thread.start() reactor.run() + print '' if _num_to_send != _insts_received: print 'Expected %s exceptions, got %s' % (_num_to_send, _insts_received) sys.exit(1) + else: + print 'Tests passed' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |