From 736ed97974c0b78210c7113d74b40e6602598072 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 27 Dec 2016 16:28:45 +0000 Subject: [PATCH] Fixes tests once and for all. --- tests/tester.nim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/tester.nim b/tests/tester.nim index 4ac3ce7..4d73b1b 100644 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -42,18 +42,13 @@ proc inLines(lines: seq[string], line: string): bool = if line.normalize in i.normalize: return true test "can build with #head and versioned package (#289)": - # Clear nimble dir. - removeDir(installDir) - createDir(installDir) - cd "issue289": check execNimble(["install", "-y"]).exitCode == QuitSuccess -test "can validate package structure (#144)": - # Clear nimble dir. - removeDir(installDir) - createDir(installDir) + check execNimble(["uninstall", "issue289", "-y"]).exitCode == QuitSuccess + check execNimble(["uninstall", "packagea", "-y"]).exitCode == QuitSuccess +test "can validate package structure (#144)": # Test that no warnings are produced for correctly structured packages. for package in ["a", "b", "c"]: cd "packageStructure/" & package: