From a5b9c9241ef4145b744a107ff61e33ac35262ca9 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 16 Sep 2019 15:37:32 +0300 Subject: [PATCH] Tests: more comments. --- test/unit/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/main.py b/test/unit/main.py index f9aa29cf..2ee43251 100644 --- a/test/unit/main.py +++ b/test/unit/main.py @@ -42,6 +42,8 @@ class TestUnit(unittest.TestCase): if not hasattr(self, 'application_type'): return super().run(result) + # rerun test for each available module version + type = self.application_type for prerequisite in self.prerequisites: if prerequisite in available_modules: @@ -351,6 +353,8 @@ class TestUnit(unittest.TestCase): TestUnit.save_log = args.save_log TestUnit.unsafe = args.unsafe + # set stdout to non-blocking + if TestUnit.detailed: fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)