changeset 12135:b6cc68ef2702

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.
author Brodie Rao <brodie@bitheap.org>
date Mon, 30 Aug 2010 11:16:21 -0400
parents 8a0e5b0c0ba9
children 30b5e83004e0
files tests/test-serve
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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