diff testcases.py @ 55:c726235e49ee

Hopefully somewhat improve accuracy of run-time reporting
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 20 Dec 2010 23:03:28 +0200
parents 1914ae9cfdce
children 693a938bdeee
line wrap: on
line diff
--- a/testcases.py	Mon Dec 20 22:44:34 2010 +0200
+++ b/testcases.py	Mon Dec 20 23:03:28 2010 +0200
@@ -394,7 +394,7 @@
 											raise CanceledByUser
 										else:
 											time_next_check = now + .15
-									time.sleep(0)
+									time.sleep(.001)
 						else:
 							time_end = case.time_started + case.maxtime
 							while True:
@@ -410,7 +410,7 @@
 											raise CanceledByUser
 										else:
 											time_next_check = now + .15
-									time.sleep(0)
+									time.sleep(.001)
 						if config.globalconf.force_zero_exitcode and case.process.returncode:
 							raise NonZeroExitCode(case.process.returncode)
 						callback()
@@ -443,7 +443,7 @@
 								raise CanceledByUser
 							else:
 								time_next_check = now + .15
-						time.sleep(0)
+						time.sleep(.001)
 			else:
 				time_end = case.time_started + case.maxtime
 				while True:
@@ -459,7 +459,7 @@
 								raise CanceledByUser
 							else:
 								time_next_check = now + .15
-						time.sleep(0)
+						time.sleep(.001)
 			if config.globalconf.force_zero_exitcode and case.process.returncode:
 				raise NonZeroExitCode(case.process.returncode)
 			callback()