Try to make console out nonblocking

This commit is contained in:
Andrey Pohilko 2013-08-01 13:54:00 +04:00
parent 595ee99ed3
commit 64993e525a
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ from tankcore import AbstractPlugin
import logging
import sys
import traceback
import os, fcntl
class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
''' Console plugin '''
@ -46,6 +46,8 @@ class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
self.screen.block_rows = []
self.screen.info_panel_percent = 100
nf = fcntl.fcntl(sys.stdout.fileno(), fcntl.F_UNCLK)
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL , nf | os.O_NONBLOCK )
def is_test_finished(self):
try:

View File

@ -1,6 +1,4 @@
'''
Classes to build full console screen
'''
''' Classes to build full console screen '''
from Tank.Plugins import Codes
import copy
import fcntl