# HG changeset patch # User Brodie Rao # Date 1283181381 14400 # Node ID b6cc68ef27024e4f0afcd8fba382b03a43611c10 # Parent 8a0e5b0c0ba9ffef55ba406775055b789ac41ca2 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. diff -r 8a0e5b0c0ba9 -r b6cc68ef2702 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