mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
test: fix runnvim.sh (#17690)
This commit is contained in:
parent
c45644f994
commit
4ede2ea4b2
@ -14,6 +14,7 @@ fail() {
|
|||||||
local full_msg="$test_name :: $message"
|
local full_msg="$test_name :: $message"
|
||||||
echo "${full_msg}" >> "${FAIL_SUMMARY_FILE}"
|
echo "${full_msg}" >> "${FAIL_SUMMARY_FILE}"
|
||||||
echo "Failed: $full_msg"
|
echo "Failed: $full_msg"
|
||||||
|
FAILED=1
|
||||||
}
|
}
|
||||||
|
|
||||||
ended_successfully() {
|
ended_successfully() {
|
||||||
|
@ -38,7 +38,7 @@ main() {(
|
|||||||
-S runnvim.vim \
|
-S runnvim.vim \
|
||||||
"$tlog" > "out-$tlog" 2> "err-$tlog"
|
"$tlog" > "out-$tlog" 2> "err-$tlog"
|
||||||
then
|
then
|
||||||
fail "$test_name" F "Nvim exited with non-zero code"
|
fail "$test_name" "Nvim exited with non-zero code"
|
||||||
fi
|
fi
|
||||||
{
|
{
|
||||||
echo "Stdout of :terminal runner"
|
echo "Stdout of :terminal runner"
|
||||||
@ -53,7 +53,7 @@ main() {(
|
|||||||
if test "$oldesttest" = 1 ; then
|
if test "$oldesttest" = 1 ; then
|
||||||
if ! diff -q test.out "$test_name.ok" > /dev/null 2>&1 ; then
|
if ! diff -q test.out "$test_name.ok" > /dev/null 2>&1 ; then
|
||||||
if test -f test.out ; then
|
if test -f test.out ; then
|
||||||
fail "$test_name" F "Oldest test .out file differs from .ok file"
|
fail "$test_name" "Oldest test .out file differs from .ok file"
|
||||||
{
|
{
|
||||||
echo "Diff between test.out and $test_name.ok"
|
echo "Diff between test.out and $test_name.ok"
|
||||||
echo "$separator"
|
echo "$separator"
|
||||||
|
Loading…
Reference in New Issue
Block a user