From 67958f21df2cac2adfb8b8ae33a4200f49d6add6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Dec 2008 16:55:22 +0000 Subject: [PATCH] * Be sure to clean up the daemon if the test fails. --- tests/remote-store.sh | 2 ++ 1 file changed, 2 insertions(+) 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