Always compile tests in the JS category with the JS backend (#6680)
This commit is contained in:
parent
8cc268876a
commit
cf9da7d751
1 changed files with 2 additions and 1 deletions
|
|
@ -418,8 +418,9 @@ proc `&?.`(a, b: string): string =
|
||||||
|
|
||||||
proc processSingleTest(r: var TResults, cat: Category, options, test: string) =
|
proc processSingleTest(r: var TResults, cat: Category, options, test: string) =
|
||||||
let test = "tests" & DirSep &.? cat.string / test
|
let test = "tests" & DirSep &.? cat.string / test
|
||||||
|
let target = if cat.string.normalize == "js": targetJS else: targetC
|
||||||
|
|
||||||
if existsFile(test): testSpec r, makeTest(test, options, cat)
|
if existsFile(test): testSpec r, makeTest(test, options, cat, target = target)
|
||||||
else: echo "[Warning] - ", test, " test does not exist"
|
else: echo "[Warning] - ", test, " test does not exist"
|
||||||
|
|
||||||
proc processCategory(r: var TResults, cat: Category, options: string) =
|
proc processCategory(r: var TResults, cat: Category, options: string) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue