From 77e621b9d7eff491c2f2ebc278a45ebe0c0377c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 25 Mar 2019 22:45:34 +0100 Subject: [PATCH] *.nimble: remove imports --- libp2p.nimble | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libp2p.nimble b/libp2p.nimble index bd98c22..c6f3be1 100644 --- a/libp2p.nimble +++ b/libp2p.nimble @@ -11,9 +11,12 @@ requires "nim > 0.18.0", "nimcrypto >= 0.3.9", "chronos" -import ospaths, strutils, distros +proc runTest(filename: string) = + exec "nim c -r tests/" & filename + rmFile "tests/" & filename task test, "Runs the test suite": - exec "nim c -r " & ("tests" / "testnative.nim") - if not detectOs(Windows): - exec "nim c -r " & ("tests" / "testdaemon.nim") + runTest "testnative" + when not defined(windows): + runTest "testdaemon" +