diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-04 18:20:58 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-02-14 00:33:52 +0300 |
commit | d6705918870c8cf6c6a2eced220f59f59e7ce26f (patch) | |
tree | 2297fd9ca5d9aed621bc3769f152a622dee9d3e4 /test/functional/helpers.lua | |
parent | 3e94510570316129d29a38b8069ccb62a7f55bf6 (diff) | |
download | rneovim-d6705918870c8cf6c6a2eced220f59f59e7ce26f.tar.gz rneovim-d6705918870c8cf6c6a2eced220f59f59e7ce26f.tar.bz2 rneovim-d6705918870c8cf6c6a2eced220f59f59e7ce26f.zip |
ci: Better core dump checking
- Do not exclude any directories from `find` search, remove dumps before tests
instead.
- Install `apport` on travis so that linux tests should produce core dumps
(based on information from travis-ci/travis-ci#3754, not sure whether it still
applies).
- Check cores in lua so that one has an idea which test is failing exactly. Do
this only 10% of time on linux because traversing the file system is slow.
Unit tests are still not touched, though it is what `app` argument in
`check_cores` is for.
TODO? consider using `find`, it may be faster. Consider retiring `os.execute`,
dealing with escaping is bad.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 4db658d98c..53cbf8d4a1 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -9,6 +9,7 @@ local TcpStream = require('nvim.tcp_stream') local SocketStream = require('nvim.socket_stream') local ChildProcessStream = require('nvim.child_process_stream') +local check_cores = global_helpers.check_cores local check_logs = global_helpers.check_logs local neq = global_helpers.neq local eq = global_helpers.eq @@ -608,7 +609,10 @@ local M = { return function(after_each) if after_each then - after_each(check_logs) + after_each(function() + check_logs() + check_cores('build/bin/nvim') + end) end return M end |