* Be sure to clean up the daemon if the test fails.

This commit is contained in:
Eelco Dolstra 2008-12-04 16:55:22 +00:00
parent d91dc086bb
commit 67958f21df
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ clearStore
clearManifests
$nixworker --daemon &
pidDaemon=$!
trap "kill -9 $pidDaemon" EXIT
NIX_REMOTE=daemon $SHELL ./user-envs.sh
kill -9 $pidDaemon
wait $pidDaemon || true
trap "" EXIT