From bc3d04f111eca379754e44d127a66d9bb4523fb7 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 15 Dec 2015 11:13:04 +0300 Subject: [PATCH] Fix populating the stderr file, strip the coordinates of the error from it --- test/run | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/run b/test/run index 0622f063..00dd9338 100755 --- a/test/run +++ b/test/run @@ -36,7 +36,7 @@ main() { exec gg } hook global RuntimeError .+ %{ - nop %sh{echo '\$kak_hook_param' > stderr} + nop %sh{echo \"\$kak_hook_param\" > stderr} quit! } exec '$(cat cmd | sed -e s/\'/\\\\\'/g)' @@ -85,8 +85,11 @@ main() { color=red number_failures=$(($number_failures + 1)) fi - elif [ -s error -a ! $(cmp -s error stderr) ]; then - color=yellow + else + sed -ri 's/^[0-9]+:[0-9]+: //g' stderr + if [ -s error ] && ! cmp -s error stderr; then + color=yellow + fi fi echo "$indent$name" | colorize $color normal