Prevent stalls due to no -y flag.
This commit is contained in:
parent
b4f96c8071
commit
dc72aeb677
3 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
dist: xenial
|
dist: xenial # Needed for libsass-dev :/
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ task devdb, "Creates a test DB":
|
||||||
exec "./src/setup_nimforum --dev"
|
exec "./src/setup_nimforum --dev"
|
||||||
|
|
||||||
task test, "Runs tester":
|
task test, "Runs tester":
|
||||||
exec "nimble c src/forum.nim"
|
exec "nimble c -y src/forum.nim"
|
||||||
exec "nimble c -r tests/browsertester"
|
exec "nimble c -y -r tests/browsertester"
|
||||||
|
|
||||||
task fasttest, "Runs tester without recompiling backend":
|
task fasttest, "Runs tester without recompiling backend":
|
||||||
exec "nimble c -r tests/browsertester"
|
exec "nimble c -r tests/browsertester"
|
||||||
|
|
@ -24,7 +24,7 @@ template withBackend(body: untyped): untyped =
|
||||||
## Starts a new backend instance with a fresh DB.
|
## Starts a new backend instance with a fresh DB.
|
||||||
doAssert(execCmd("nimble testdb") == QuitSuccess)
|
doAssert(execCmd("nimble testdb") == QuitSuccess)
|
||||||
|
|
||||||
spawn runProcess("nimble runbackend")
|
spawn runProcess("nimble -y runbackend")
|
||||||
defer:
|
defer:
|
||||||
discard execCmd("killall " & backend)
|
discard execCmd("killall " & backend)
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ when isMainModule:
|
||||||
defer:
|
defer:
|
||||||
discard execCmd("killall geckodriver")
|
discard execCmd("killall geckodriver")
|
||||||
|
|
||||||
doAssert(execCmd("nimble frontend") == QuitSuccess)
|
doAssert(execCmd("nimble -y frontend") == QuitSuccess)
|
||||||
echo("Waiting for geckodriver to startup...")
|
echo("Waiting for geckodriver to startup...")
|
||||||
sleep(5000)
|
sleep(5000)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue