From 31853bf224b9496a9ffee2a515e691fff4240db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 25 Mar 2019 22:55:20 +0100 Subject: [PATCH] *.nimble: remove import --- .gitignore | 2 ++ chronos.nimble | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4f3532ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +nimcache + diff --git a/chronos.nimble b/chronos.nimble index 55196c08..74feb465 100644 --- a/chronos.nimble +++ b/chronos.nimble @@ -9,8 +9,6 @@ skipDirs = @["tests"] requires "nim > 0.18.0" -import ospaths - task test, "Run all tests": var testFiles = @[ @@ -41,13 +39,14 @@ task test, "Run all tests": if tfile == "testtime": for cmd in testCommands: for def in timerCommands: - var commandLine = (cmd & def & " tests") / tfile + var commandLine = cmd & def & " tests/" & tfile echo "\n" & commandLine exec commandLine - rmFile("tests" / tfile.toExe()) + rmFile("tests/" & tfile.toExe()) else: for cmd in testCommands: - var commandLine = (cmd & " tests") / tfile + var commandLine = cmd & " tests/" & tfile echo "\n" & commandLine exec commandLine - rmFile("tests" / tfile.toExe()) + rmFile("tests/" & tfile.toExe()) +