From b4ea608b65ea7637f29cd65827ab46e44bc08017 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Tue, 11 Jun 2013 22:34:09 +0200 Subject: [PATCH] Removes the nimcache symbol directory for each run. --- tests/caasdriver.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/caasdriver.nim b/tests/caasdriver.nim index 619ce9b6a8..cd27839c78 100644 --- a/tests/caasdriver.nim +++ b/tests/caasdriver.nim @@ -75,7 +75,13 @@ proc startNimrodSession(project, script: string, mode: TRunMode): result.lastOutput = "" result.filename = name & ext result.modname = name - result.nimcache = "SymbolProcRun." & script.splitFile.name + + let (nimcacheDir, nimcacheName, nimcacheExt) = script.splitFile + result.nimcache = "SymbolProcRun." & nimcacheName + + if mode == SymbolProcRun: + removeDir(nimcacheDir / result.nimcache) + if mode == CaasRun: result.nim = startProcess(NimrodBin, workingDir = dir, args = ["serve", "--server.type:stdin", name]) @@ -122,7 +128,6 @@ proc doCommand(session: var TNimrodSession, command: string) = if session.mode == SymbolProcRun: command = "--symbolFiles:on --nimcache:" & session.nimcache & " " & command - echo "Running ", command session.lastOutput = doProcCommand(session, command & " " & session.filename)