summaryrefslogtreecommitdiffhomepage
path: root/test/unit/main.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-04-22 18:52:46 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-04-22 18:52:46 +0300
commit7a559c656880871011a740842d28fb54628c03dd (patch)
tree0c3b457909d8d51d4a86e7ab171c2f1602798516 /test/unit/main.py
parent5d15d8449d09adbf66f465e862d4acfa86006d16 (diff)
downloadunit-7a559c656880871011a740842d28fb54628c03dd.tar.gz
unit-7a559c656880871011a740842d28fb54628c03dd.tar.bz2
Tests: using blocking for large output.
Diffstat (limited to '')
-rw-r--r--test/unit/main.py4
1 files changed, 4 insertions, 0 deletions
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')