Skip to content

Commit 513263e

Browse files
authored
#Fixes 1418 "nimble test -c and nimble test --continue causes tests to fail" (#1425)
1 parent 8531590 commit 513263e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nimble.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ proc test(options: Options) =
18431843
optsCopy.action.backend = pkgInfo.backend
18441844
optsCopy.getCompilationFlags() = options.getCompilationFlags()
18451845
# treat run flags as compile for default test task
1846-
optsCopy.getCompilationFlags().add(options.action.custRunFlags)
1846+
optsCopy.getCompilationFlags().add(options.action.custRunFlags.filterIt(it != "--continue" and it != "-c"))
18471847
optsCopy.getCompilationFlags().add("-r")
18481848
optsCopy.getCompilationFlags().add("--path:.")
18491849
let
@@ -1872,7 +1872,7 @@ proc test(options: Options) =
18721872
if failures == 0:
18731873
display("Success:", "All tests passed", Success, HighPriority)
18741874
else:
1875-
let error = "Only " & $(tests - failures) & "/" & $tests & " tests passed"
1875+
let error = "Only " & $(tests - failures) & "/" & $tests & " tests files passed"
18761876
display("Error:", error, Error, HighPriority)
18771877

18781878
if not execHook(options, actionCustom, false):

0 commit comments

Comments
 (0)