Tests: using blocking for large output.
This commit is contained in:
@@ -2,6 +2,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import fcntl
|
||||||
import shutil
|
import shutil
|
||||||
import argparse
|
import argparse
|
||||||
import platform
|
import platform
|
||||||
@@ -316,5 +317,8 @@ class TestUnit(unittest.TestCase):
|
|||||||
TestUnit.detailed = args.detailed
|
TestUnit.detailed = args.detailed
|
||||||
TestUnit.save_log = args.save_log
|
TestUnit.save_log = args.save_log
|
||||||
|
|
||||||
|
if TestUnit.detailed:
|
||||||
|
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)
|
||||||
|
|
||||||
def _print_path_to_log(self):
|
def _print_path_to_log(self):
|
||||||
print('Path to unit.log:\n' + self.testdir + '/unit.log')
|
print('Path to unit.log:\n' + self.testdir + '/unit.log')
|
||||||
|
|||||||
Reference in New Issue
Block a user