Fixes aporia install. See nim-lang/aporia#136. Refs #311.

This commit is contained in:
Dominik Picheta 2017-01-08 18:15:36 +01:00
commit d78af3acf1
3 changed files with 38 additions and 34 deletions

View file

@ -42,6 +42,12 @@ proc inLines(lines: seq[string], line: string): bool =
for i in lines:
if line.normalize in i.normalize: return true
test "picks #head when looking for packages":
cd "versionClashes" / "aporiaScenario":
check execNimble("install", "-y", "--verbose").exitCode == QuitSuccess
check execNimble("remove", "aporiascenario", "-y").exitCode == QuitSuccess
check execNimble("remove", "packagea", "-y").exitCode == QuitSuccess
test "can distinguish package reading in nimbleDir vs. other dirs (#304)":
cd "issue304" / "package-test":
check execNimble("tasks").exitCode == QuitSuccess