Prevent stalls due to no -y flag.

This commit is contained in:
Dominik Picheta 2018-05-19 17:04:43 +01:00
commit dc72aeb677
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
dist: xenial
dist: xenial # Needed for libsass-dev :/
os:
- linux

View file

@ -45,8 +45,8 @@ task devdb, "Creates a test DB":
exec "./src/setup_nimforum --dev"
task test, "Runs tester":
exec "nimble c src/forum.nim"
exec "nimble c -r tests/browsertester"
exec "nimble c -y src/forum.nim"
exec "nimble c -y -r tests/browsertester"
task fasttest, "Runs tester without recompiling backend":
exec "nimble c -r tests/browsertester"

View file

@ -24,7 +24,7 @@ template withBackend(body: untyped): untyped =
## Starts a new backend instance with a fresh DB.
doAssert(execCmd("nimble testdb") == QuitSuccess)
spawn runProcess("nimble runbackend")
spawn runProcess("nimble -y runbackend")
defer:
discard execCmd("killall " & backend)
@ -51,7 +51,7 @@ when isMainModule:
defer:
discard execCmd("killall geckodriver")
doAssert(execCmd("nimble frontend") == QuitSuccess)
doAssert(execCmd("nimble -y frontend") == QuitSuccess)
echo("Waiting for geckodriver to startup...")
sleep(5000)