Tests: using blocking for large output.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user