##// END OF EJS Templates
tests: eliminate shutdown race and sleeps in test-serve
Matt Mackall -
r16297:1791d766 stable
parent child Browse files
Show More
@@ -9,13 +9,12 b''
9 > cat hg.pid >> "$DAEMON_PIDS"
9 > cat hg.pid >> "$DAEMON_PIDS"
10 > echo % errors
10 > echo % errors
11 > cat errors.log
11 > cat errors.log
12 > sleep 1
13 > if [ "$KILLQUIETLY" = "Y" ]; then
12 > if [ "$KILLQUIETLY" = "Y" ]; then
14 > kill `cat hg.pid` 2>/dev/null
13 > kill `cat hg.pid` 2>/dev/null
15 > else
14 > else
16 > kill `cat hg.pid`
15 > kill `cat hg.pid`
17 > fi
16 > fi
18 > sleep 1
17 > while kill -0 `cat hg.pid` 2>/dev/null; do true; done
19 > }
18 > }
20
19
21 $ hg init test
20 $ hg init test
General Comments 0
You need to be logged in to leave comments. Login now