Make test independent of repo location (#16571)
* Make test independent of repo location * Fix differently
This commit is contained in:
parent
c82c67dc69
commit
a0134671ee
1 changed files with 1 additions and 3 deletions
|
|
@ -230,8 +230,6 @@ sub/mmain.idx""", context
|
||||||
doAssert exitCode == 0
|
doAssert exitCode == 0
|
||||||
let dir = getCurrentDir()
|
let dir = getCurrentDir()
|
||||||
let files = """
|
let files = """
|
||||||
config/nim.cfg
|
|
||||||
config/config.nims
|
|
||||||
tests/config.nims
|
tests/config.nims
|
||||||
tests/newconfig/bar/nim.cfg
|
tests/newconfig/bar/nim.cfg
|
||||||
tests/newconfig/bar/config.nims
|
tests/newconfig/bar/config.nims
|
||||||
|
|
@ -241,7 +239,7 @@ tests/newconfig/bar/mfoo.nims""".splitLines
|
||||||
for a in files:
|
for a in files:
|
||||||
let b = dir / a
|
let b = dir / a
|
||||||
expected.add &"Hint: used config file '{b}' [Conf]\n"
|
expected.add &"Hint: used config file '{b}' [Conf]\n"
|
||||||
doAssert outp == expected, outp & "\n" & expected
|
doAssert outp.endsWith expected, outp & "\n" & expected
|
||||||
|
|
||||||
block: # nim --eval
|
block: # nim --eval
|
||||||
let opt = "--hints:off"
|
let opt = "--hints:off"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue