summary refs log tree commit diff stats
path: root/tests/testament
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-10-07 16:06:31 -0700
committerAman Gupta <aman@tmm1.net>2015-10-07 16:06:31 -0700
commitc2940260e55203f764965e16b1776b0b31d2d482 (patch)
tree36a405e957a913a10234abad0b0b1062eef00779 /tests/testament
parent75f648398a0d1c3477578f0ad204a32a365ea7d4 (diff)
downloadNim-c2940260e55203f764965e16b1776b0b31d2d482.tar.gz
avoid sqlite db on travis and appveyor
Diffstat (limited to 'tests/testament')
-rw-r--r--tests/testament/backend.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testament/backend.nim b/tests/testament/backend.nim
index e2e2e2dd5..269835607 100644
--- a/tests/testament/backend.nim
+++ b/tests/testament/backend.nim
@@ -112,7 +112,8 @@ proc writeTestResult*(name, category, target,
                                         thisCommit, thisMachine)
 
 proc open*() =
-  db = open(connection="testament.db", user="testament", password="",
+  let dbFile = if existsEnv("TRAVIS") or existsEnv("APPVEYOR"): ":memory:" else: "testament.db"
+  db = open(connection=dbFile, user="testament", password="",
             database="testament")
   createDb()
   thisMachine = getMachine(db)