nimsuggest/tester: disable highlight tests for epc (#10426)

The EPC backend of nimsuggest currently doesn't support nimsuggest
highlighter, see nim-lang/nim-mode#140
This commit is contained in:
alaviss 2019-01-23 15:43:11 +07:00 • committed by Andreas Rumpf
commit 2fb8b1d132
3 changed files with 4 additions and 2 deletions

View file

@ -240,6 +240,10 @@ proc skipDisabledTest(test: Test): bool =
proc runEpcTest(filename: string): int =
let s = parseTest(filename, true)
if s.skipDisabledTest: return 0
for req, _ in items(s.script):
if req.startsWith("highlight"):
echo "disabled epc: " & s.filename
return 0
for cmd in s.startup:
if not runCmd(cmd, s.dest):
quit "invalid command: " & cmd

View file

@ -1,7 +1,6 @@
proc `$$$`#[!]#
discard """
disabled:true
$nimsuggest --tester $file
>highlight $1
highlight;;skProc;;1;;6;;3

View file

@ -6,7 +6,6 @@ type
TypeE* {.unchecked.} = array[0, int]#[!]#
discard """
disabled:true
$nimsuggest --tester $file
>highlight $1
highlight;;skType;;2;;2;;5