Mercurial > hg
comparison tests/test-serve @ 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 | 49463314c24f |
children | ba8850911703 |
comparison
equal
deleted
inserted
replaced
12132:8a0e5b0c0ba9 | 12135:b6cc68ef2702 |
---|---|
39 | 39 |
40 echo % With -v and -p HGPORT2 | 40 echo % With -v and -p HGPORT2 |
41 hgserve -p "$HGPORT2" | 41 hgserve -p "$HGPORT2" |
42 | 42 |
43 echo '% With -v and -p http (should fail)' | 43 echo '% With -v and -p http (should fail)' |
44 KILLQUIETLY=Y hgserve -p http | 44 KILLQUIETLY=Y hgserve -p http; KILLQUIETLY=N |
45 | 45 |
46 echo % With --prefix foo | 46 echo % With --prefix foo |
47 hgserve --prefix foo | 47 hgserve --prefix foo |
48 | 48 |
49 echo % With --prefix /foo | 49 echo % With --prefix /foo |