test-serve: ensure KILLQUIETLY is only used once
authorBrodie Rao <brodie@bitheap.org>
Mon, 30 Aug 2010 11:16:21 -0400
changeset 12135 b6cc68ef2702
parent 12132 8a0e5b0c0ba9
child 12136 30b5e83004e0
test-serve: ensure KILLQUIETLY is only used once 49463314c24f introduced a feature to the hgserve() function that suppresses errors from kill(1). It wrongly assumed that setting an environment variable when calling a function would make it local to the function. It ended up suppressing kill errors for every call thereafter. This patch sets KILLQUIETLY=N after use.
tests/test-serve
--- a/tests/test-serve	Wed Sep 01 15:03:45 2010 +0200
+++ b/tests/test-serve	Mon Aug 30 11:16:21 2010 -0400
@@ -41,7 +41,7 @@
 hgserve -p "$HGPORT2"
 
 echo '% With -v and -p http (should fail)'
-KILLQUIETLY=Y hgserve -p http
+KILLQUIETLY=Y hgserve -p http; KILLQUIETLY=N
 
 echo % With --prefix foo
 hgserve --prefix foo