# HG changeset patch # User Matt Mackall # Date 1332948579 18000 # Node ID 1791d7662d32e940dd162cfa1819b2670200985b # Parent 4343d5226149fb87e0f95da5eae57006a537fa65 tests: eliminate shutdown race and sleeps in test-serve diff -r 4343d5226149 -r 1791d7662d32 tests/test-serve.t --- a/tests/test-serve.t Wed Mar 28 10:11:12 2012 -0500 +++ b/tests/test-serve.t Wed Mar 28 10:29:39 2012 -0500 @@ -9,13 +9,12 @@ > cat hg.pid >> "$DAEMON_PIDS" > echo % errors > cat errors.log - > sleep 1 > if [ "$KILLQUIETLY" = "Y" ]; then > kill `cat hg.pid` 2>/dev/null > else > kill `cat hg.pid` > fi - > sleep 1 + > while kill -0 `cat hg.pid` 2>/dev/null; do true; done > } $ hg init test