diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/main.py | 4 |
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') |