From cf9da7d7517ae8d7177a5efbbd1c39982131eb52 Mon Sep 17 00:00:00 2001 From: GULPF Date: Fri, 3 Nov 2017 21:08:09 +0100 Subject: [PATCH] Always compile tests in the JS category with the JS backend (#6680) --- tests/testament/categories.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index 675ff946f1..68e988975b 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -418,8 +418,9 @@ proc `&?.`(a, b: string): string = proc processSingleTest(r: var TResults, cat: Category, options, test: string) = 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" proc processCategory(r: var TResults, cat: Category, options: string) =