From 63ac7529167efdc76047b10b075827b5cfa874d3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 10 May 2016 13:51:00 +0100 Subject: [PATCH] Improve test script --- test/run | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/test/run b/test/run index e223ebfc..ab814956 100755 --- a/test/run +++ b/test/run @@ -31,18 +31,14 @@ main() { set global autoreload yes set global autoinfo '' set global autoshowcompl false + try %{ source rc } try %{ - source rc - } - try %{ - exec '%s%\(\K[^)]+ld(hHdi' - } \ - catch %{ - exec gg - } + exec '%s%\(\K[^)]+ld(hHdi' + } catch %{ exec gg } hook global RuntimeError .+ %{ - nop %sh{echo \"\$kak_hook_param\" > stderr} - quit! + echo -debug -- error: %val{hook_param} + eval -buffer *debug* write debug + quit! } exec '$(cat cmd | sed -e s/\'/\\\\\'/g)' exec