* Be sure to clean up the daemon if the test fails.
This commit is contained in:
parent
d91dc086bb
commit
67958f21df
|
@ -12,6 +12,8 @@ clearStore
|
||||||
clearManifests
|
clearManifests
|
||||||
$nixworker --daemon &
|
$nixworker --daemon &
|
||||||
pidDaemon=$!
|
pidDaemon=$!
|
||||||
|
trap "kill -9 $pidDaemon" EXIT
|
||||||
NIX_REMOTE=daemon $SHELL ./user-envs.sh
|
NIX_REMOTE=daemon $SHELL ./user-envs.sh
|
||||||
kill -9 $pidDaemon
|
kill -9 $pidDaemon
|
||||||
wait $pidDaemon || true
|
wait $pidDaemon || true
|
||||||
|
trap "" EXIT
|
||||||
|
|
Loading…
Reference in a new issue