diff --git a/tests/remote-store.sh b/tests/remote-store.sh index 1e5a4356e..260fdeb76 100644 --- a/tests/remote-store.sh +++ b/tests/remote-store.sh @@ -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