fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641)

* fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6]
This commit is contained in:
flywind 2022-03-26 18:50:15 +08:00 • committed by GitHub
commit 82319ef00d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -249,6 +249,11 @@ tests/newconfig/bar/mfoo.nims""".splitLines
expected.add &"Hint: used config file '{b}' [Conf]\n"
doAssert outp.endsWith expected, outp & "\n" & expected
block: # bug #8219
let file = "tests/newconfig/mconfigcheck.nims"
let cmd = fmt"{nim} check --hints:off {file}"
check execCmdEx(cmd) == ("", 0)
block: # mfoo2.customext
let filename = testsDir / "newconfig/foo2/mfoo2.customext"
let cmd = fmt"{nim} e --hint:conf {filename}"