mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
Try to make console out nonblocking
This commit is contained in:
parent
595ee99ed3
commit
64993e525a
@ -5,7 +5,7 @@ from tankcore import AbstractPlugin
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
import os, fcntl
|
||||||
|
|
||||||
class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
|
class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
|
||||||
''' Console plugin '''
|
''' Console plugin '''
|
||||||
@ -46,6 +46,8 @@ class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
|
|||||||
self.screen.block_rows = []
|
self.screen.block_rows = []
|
||||||
self.screen.info_panel_percent = 100
|
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):
|
def is_test_finished(self):
|
||||||
try:
|
try:
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
'''
|
''' Classes to build full console screen '''
|
||||||
Classes to build full console screen
|
|
||||||
'''
|
|
||||||
from Tank.Plugins import Codes
|
from Tank.Plugins import Codes
|
||||||
import copy
|
import copy
|
||||||
import fcntl
|
import fcntl
|
||||||
|
Loading…
Reference in New Issue
Block a user