summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-07-06 17:04:22 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-07-06 18:03:19 +0200
commitb22af9776d501f75d205358eedec790baa0d32b2 (patch)
treeff8af70341b3f77f4feac3710ea5c5988811dc61
parent4583c4ea0a9dbf8805b0e84f21a9ecd7da68146d (diff)
downloadNim-b22af9776d501f75d205358eedec790baa0d32b2.tar.gz
Forces removal of nimcache dir for all caas runs.
Now some test cases fail because they can't use a previous nimcache
directory (which potentially could have wrong compiled code anyway).
-rw-r--r--tests/caasdriver.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/caasdriver.nim b/tests/caasdriver.nim
index f6f3d4e38..2ec4c888d 100644
--- a/tests/caasdriver.nim
+++ b/tests/caasdriver.nim
@@ -84,6 +84,8 @@ proc startNimrodSession(project, script: string, mode: TRunMode):
 
   if mode == SymbolProcRun:
     removeDir(nimcacheDir / result.nimcache)
+  else:
+    removeDir(nimcacheDir / "nimcache")
 
   if mode == CaasRun:
     result.nim = startProcess(NimrodBin, workingDir = dir,