#NEWLINE# def teardown_suite( self ) : #NEWLINE# #INDENT# if ( self . sample_code_in is not None ) : #NEWLINE# #INDENT# self . sample_code_in . write ( 'quit\n' ) #NEWLINE# self . sample_code_in . flush ( ) #NEWLINE# #UNINDENT# if ( self . ssh is not None ) : #NEWLINE# #INDENT# with self . ssh . open_sftp ( ) as ftp : #NEWLINE# #INDENT# input_csv = os . path . join ( runtime . get_active_config ( 'LOGS_DIRECTORY' ) , 'output.csv' ) #NEWLINE# input_log = os . path . join ( runtime . get_active_config ( 'LOGS_DIRECTORY' ) , 'output.log' ) #NEWLINE# ftp . get ( '/tmp/trivial_timed_output.csv' , input_csv ) #NEWLINE# ftp . get ( '/tmp/trivial_timed_output' , input_log ) #NEWLINE# ftp . remove ( '/tmp/trivial_timed_output.csv' ) #NEWLINE# ftp . remove ( '/tmp/trivial_timed_output' ) #NEWLINE# #UNINDENT# self . ssh . close ( ) #NEWLINE# #UNINDENT# if ( self . _deployer is not None ) : #NEWLINE# #INDENT# self . _deployer . stop ( 'ztestsuite.unittest' )