mirror of https://github.com/redis/redis.git
				
				
				
			Sentiel test: add test start time in output.
This commit is contained in:
		
							parent
							
								
									c5edd91716
								
							
						
					
					
						commit
						dd8d883c9c
					
				| 
						 | 
				
			
			@ -137,7 +137,8 @@ proc pause_on_error {} {
 | 
			
		|||
# We redefine 'test' as for Sentinel we don't use the server-client
 | 
			
		||||
# architecture for the test, everything is sequential.
 | 
			
		||||
proc test {descr code} {
 | 
			
		||||
    puts -nonewline "> $descr: "
 | 
			
		||||
    set ts [clock format [clock seconds] -format %H:%M:%S]
 | 
			
		||||
    puts -nonewline "$ts> $descr: "
 | 
			
		||||
    flush stdout
 | 
			
		||||
 | 
			
		||||
    if {[catch {set retval [uplevel 1 $code]} error]} {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue