def _get_logs_used_space():
 logs_dir = settings.get_value('COMMON', 'test_output_dir', default=None)
 autodir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
 if (logs_dir is None):
  logs_dir = os.path.join(autodir, 'results')
 usage = psutil.disk_usage(logs_dir)
 return int(usage.percent)

def _get_logs_used_space ( ) : logs_dir = settings . get_value ( 'COMMON' , 'test_output_dir' , default = None ) autodir = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '..' , '..' ) ) if ( logs_dir is None ) : logs_dir = os . path . join ( autodir , 'results' ) usage = psutil . disk_usage ( logs_dir ) return int ( usage . percent )
return disk usage for the results directory .