tnimblepathdollarfail.nim -> tests/nimble/tnimblepathdollar_fault to reduce false positives when searching for fail in CI logs (#14450)

This commit is contained in:
Timothee Cour 2020-05-25 13:54:30 -07:00 • committed by GitHub
commit acadda8da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,13 @@
discard """
errmsg: "cannot open file: pkgA/module"
"""
# see nims file; comment out `switch("noNimblePath")` there and there would be no error
import pkgA/module as A
import pkgB/module as B
import pkgC/module as C
doAssert pkgATest() == 1, "Simple pkgA-0.1.0 wasn't added to path correctly."
doAssert pkgBTest() == 0xDEADBEEF, "pkgB-#head wasn't picked over pkgB-0.1.0"
doAssert pkgCTest() == 0xDEADBEEF, "pkgC-#head wasn't picked over pkgC-#aa11"