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:
parent
e962be8981
commit
2fb8b1d132
3 changed files with 4 additions and 2 deletions
|
|
@ -240,6 +240,10 @@ proc skipDisabledTest(test: Test): bool =
|
||||||
proc runEpcTest(filename: string): int =
|
proc runEpcTest(filename: string): int =
|
||||||
let s = parseTest(filename, true)
|
let s = parseTest(filename, true)
|
||||||
if s.skipDisabledTest: return 0
|
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:
|
for cmd in s.startup:
|
||||||
if not runCmd(cmd, s.dest):
|
if not runCmd(cmd, s.dest):
|
||||||
quit "invalid command: " & cmd
|
quit "invalid command: " & cmd
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
proc `$$$`#[!]#
|
proc `$$$`#[!]#
|
||||||
|
|
||||||
discard """
|
discard """
|
||||||
disabled:true
|
|
||||||
$nimsuggest --tester $file
|
$nimsuggest --tester $file
|
||||||
>highlight $1
|
>highlight $1
|
||||||
highlight;;skProc;;1;;6;;3
|
highlight;;skProc;;1;;6;;3
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ type
|
||||||
TypeE* {.unchecked.} = array[0, int]#[!]#
|
TypeE* {.unchecked.} = array[0, int]#[!]#
|
||||||
|
|
||||||
discard """
|
discard """
|
||||||
disabled:true
|
|
||||||
$nimsuggest --tester $file
|
$nimsuggest --tester $file
|
||||||
>highlight $1
|
>highlight $1
|
||||||
highlight;;skType;;2;;2;;5
|
highlight;;skType;;2;;2;;5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue