fix #18077 testament now parses cmd properly (#18086)

This commit is contained in:
Timothee Cour 2021-05-26 00:46:53 -07:00 • committed by GitHub
commit 0b2bbcaa23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 16 deletions

View file

@ -87,8 +87,9 @@ proc runBasicDLLTest(c, r: var TResults, cat: Category, options: string) =
var hcri = makeTest("tests/dll/nimhcr_integration.nim",
options & " --forceBuild --hotCodeReloading:on" & rpath, cat)
let nimcache = nimcacheDir(hcri.name, hcri.options, getTestSpecTarget())
hcri.args = prepareTestArgs(hcri.spec.getCmd, hcri.name,
let cmd = prepareTestCmd(hcri.spec.getCmd, hcri.name,
hcri.options, nimcache, getTestSpecTarget())
hcri.testArgs = cmd.parseCmdLine
testSpec r, hcri
proc dllTests(r: var TResults, cat: Category, options: string) =