summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-06-11 22:34:09 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-06-11 22:34:37 +0200
commitb4ea608b65ea7637f29cd65827ab46e44bc08017 (patch)
tree9e30bcd88ddd67ac10ebc2b93d0853e69b261c51
parent28041461b7366433c22acc8257c9a5e8a0bd3b40 (diff)
downloadNim-b4ea608b65ea7637f29cd65827ab46e44bc08017.tar.gz
Removes the nimcache symbol directory for each run.
-rw-r--r--tests/caasdriver.nim9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/caasdriver.nim b/tests/caasdriver.nim
index 619ce9b6a..cd27839c7 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)