mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +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 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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user