#NEWLINE# def test_log_two_tasks_follow( ) : #NEWLINE# #INDENT# ' Test tailing a single file on two separate tasks with --follow ' #NEWLINE# with app ( TWO_TASKS_FOLLOW , 'two-tasks-follow' ) : #NEWLINE# #INDENT# proc = subprocess . Popen ( [ 'dcos' , 'task' , 'log' , 'two-tasks-follow' , '--follow' ] , stdout = subprocess . PIPE ) #NEWLINE# _mark_non_blocking ( proc . stdout ) #NEWLINE# time . sleep ( 10 ) #NEWLINE# first_lines = proc . stdout . read ( ) . decode ( 'utf-8' ) . split ( '\n' ) #NEWLINE# time . sleep ( 5 ) #NEWLINE# second_lines = proc . stdout . read ( ) . decode ( 'utf-8' ) . split ( '\n' ) #NEWLINE# assert ( len ( first_lines ) >= 5 ) #NEWLINE# assert ( len ( first_lines ) >= 3 ) #NEWLINE# proc . kill ( )