diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-05-20 23:06:56 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-05-20 23:06:56 +0100 |
commit | fa4d4b61200b6f465edbe24ebcdce1a7a8675d39 (patch) | |
tree | 9916dd2e118ddb420350c1043e1f0884dfd210c4 /test | |
parent | b2e6ef7bebff632fc64e10bdb03b5da02817d172 (diff) | |
download | unit-fa4d4b61200b6f465edbe24ebcdce1a7a8675d39.tar.gz unit-fa4d4b61200b6f465edbe24ebcdce1a7a8675d39.tar.bz2 |
Tests: print unit.log in case of errors.
Thanks to hongzhidao.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/main.py b/test/unit/main.py index 42918c9d..d415f58f 100644 --- a/test/unit/main.py +++ b/test/unit/main.py @@ -102,7 +102,7 @@ class TestUnit(unittest.TestCase): break if m is None: - unit.stop() + unit._print_log() exit("Unit is writing log too long") # discover available modules from unit.log @@ -198,6 +198,7 @@ class TestUnit(unittest.TestCase): atexit.register(self.stop) if not self.waitforfiles(self.testdir + '/control.unit.sock'): + self._print_log() exit("Could not start unit") self.skip_alerts = [ |