Testament should run tests with no action (#8232)

* Testament should run tests with no action

* Fix strutils tests for JS
This commit is contained in:
genotrance 2018-07-08 19:38:46 -05:00 • committed by Varriount
commit c115090f6e
5 changed files with 27 additions and 21 deletions

View file

@ -297,6 +297,8 @@ proc testSpec(r: var TResults, test: TTest, target = targetC) =
var expected: TSpec
if test.action != actionRunNoSpec:
expected = parseSpec(tname)
if test.action == actionRun and expected.action == actionCompile:
expected.action = actionRun
else:
specDefaults expected
expected.action = actionRunNoSpec