From f957dd59d66a396fcc0da5a4c8d099765dcdc585 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 5 Jun 2023 17:01:32 +0200 Subject: [PATCH] Fix tests on Nim 1.6.12 Ignore the nimble.lock at the root level when running tests --- testmodules/options/test.nimble | 2 +- testmodules/result/test.nimble | 2 +- testmodules/stew/test.nimble | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testmodules/options/test.nimble b/testmodules/options/test.nimble index 1aa991e..d77aea4 100644 --- a/testmodules/options/test.nimble +++ b/testmodules/options/test.nimble @@ -4,7 +4,7 @@ description = "Questionable tests for std/option" license = "MIT" task test, "Runs the test suite": - var options = "-f -r" + var options = "-f -r --skipParentCfg" when (NimMajor, NimMinor) >= (1, 4): options &= " --warningAsError[UnsafeDefault]:on" options &= " --warningAsError[ProveInit]:on" diff --git a/testmodules/result/test.nimble b/testmodules/result/test.nimble index df14d96..35a18bb 100644 --- a/testmodules/result/test.nimble +++ b/testmodules/result/test.nimble @@ -6,4 +6,4 @@ license = "MIT" requires "result" task test, "Runs the test suite": - exec "nim c -f -r test.nim" + exec "nim c -f -r --skipParentCfg test.nim" diff --git a/testmodules/stew/test.nimble b/testmodules/stew/test.nimble index 0f0cf1d..4bce04c 100644 --- a/testmodules/stew/test.nimble +++ b/testmodules/stew/test.nimble @@ -6,4 +6,4 @@ license = "MIT" requires "stew" task test, "Runs the test suite": - exec "nim c -f -r test.nim" + exec "nim c -f -r --skipParentCfg test.nim"