]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: disable output buffering in config tests
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 16 Apr 2019 10:31:05 +0000 (12:31 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 18 Apr 2019 08:08:16 +0000 (10:08 +0200)
Output buffering in tests made debugging much harder because crash in
middle of operation discarded while buffer and left us without a trace
what was going on.

tests/config/test.cfg

index 70d36845eebe41895820f8bb869e23ad87e74fde..23a712f099794ba9dccdb023399af8c4d5afb1e6 100644 (file)
@@ -1,3 +1,7 @@
+-- disable output buffering to crashes do not leave us without log
+io.stdout:setvbuf('no')
+io.stderr:setvbuf('no')
+
 -- modify path to be able to load testing modules
 package.path = package.path .. ';' .. env.SOURCE_PATH .. '/?.lua'