mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 23:34:12 +03:00
Fix populating the stderr file, strip the coordinates of the error from it
This commit is contained in:
parent
fee06e8889
commit
bc3d04f111
9
test/run
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user