From 7a559c656880871011a740842d28fb54628c03dd Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 22 Apr 2019 18:52:46 +0300 Subject: [PATCH] Tests: using blocking for large output. --- test/unit/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/main.py b/test/unit/main.py index b2fa2950..49806fe7 100644 --- a/test/unit/main.py +++ b/test/unit/main.py @@ -2,6 +2,7 @@ import os import re import sys import time +import fcntl import shutil import argparse import platform @@ -316,5 +317,8 @@ class TestUnit(unittest.TestCase): TestUnit.detailed = args.detailed TestUnit.save_log = args.save_log + if TestUnit.detailed: + fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0) + def _print_path_to_log(self): print('Path to unit.log:\n' + self.testdir + '/unit.log')