Tests: more comments.

This commit is contained in:
Andrey Zelenkov
2019-09-16 15:37:32 +03:00
parent 7152162886
commit a5b9c9241e

View File

@@ -42,6 +42,8 @@ class TestUnit(unittest.TestCase):
if not hasattr(self, 'application_type'): if not hasattr(self, 'application_type'):
return super().run(result) return super().run(result)
# rerun test for each available module version
type = self.application_type type = self.application_type
for prerequisite in self.prerequisites: for prerequisite in self.prerequisites:
if prerequisite in available_modules: if prerequisite in available_modules:
@@ -351,6 +353,8 @@ class TestUnit(unittest.TestCase):
TestUnit.save_log = args.save_log TestUnit.save_log = args.save_log
TestUnit.unsafe = args.unsafe TestUnit.unsafe = args.unsafe
# set stdout to non-blocking
if TestUnit.detailed: if TestUnit.detailed:
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0) fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)