forked from aniani/vim
patch 8.1.0964: cannot see in CI why a screenshot test failed
Problem: Cannot see in CI why a screenshot test failed. Solution: Add info about the failure.
This commit is contained in:
@@ -111,7 +111,9 @@ func VerifyScreenDump(buf, filename, options, ...)
|
|||||||
sleep 10m
|
sleep 10m
|
||||||
call delete(testfile)
|
call delete(testfile)
|
||||||
call term_dumpwrite(a:buf, testfile, a:options)
|
call term_dumpwrite(a:buf, testfile, a:options)
|
||||||
if readfile(reference) == readfile(testfile)
|
let testdump = readfile(testfile)
|
||||||
|
let refdump = readfile(reference)
|
||||||
|
if refdump == testdump
|
||||||
call delete(testfile)
|
call delete(testfile)
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
@@ -121,6 +123,17 @@ func VerifyScreenDump(buf, filename, options, ...)
|
|||||||
if a:0 == 1
|
if a:0 == 1
|
||||||
let msg = a:1 . ': ' . msg
|
let msg = a:1 . ': ' . msg
|
||||||
endif
|
endif
|
||||||
|
if len(testdump) != len(refdump)
|
||||||
|
let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump)
|
||||||
|
endif
|
||||||
|
for i in range(len(refdump))
|
||||||
|
if i >= len(testdump)
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
if testdump[i] != refdump[i]
|
||||||
|
let msg = msg . '; difference in line ' . (i + 1) . ': "' . testdump[i] . '"'
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
call assert_report(msg)
|
call assert_report(msg)
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
@@ -779,6 +779,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
964,
|
||||||
/**/
|
/**/
|
||||||
963,
|
963,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user