Tests: using blocking for large output.

This commit is contained in:
Andrey Zelenkov
2019-04-22 18:52:46 +03:00
parent 5d15d8449d
commit 7a559c6568

View File

@@ -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')