##// END OF EJS Templates
tests: prevent test-hup from hanging forever if the transaction does not start...
Pierre-Yves David -
r20896:9fae0183 default
parent child Browse files
Show More
@@ -11,7 +11,16 b' Do test while holding fifo open'
11 $ (
11 $ (
12 > echo lock
12 > echo lock
13 > echo addchangegroup
13 > echo addchangegroup
14 > while [ ! -s .hg/store/journal ]; do sleep 0; done
14 > start=`date +%s`
15 > # 10 second seems much enough to let the server catch up
16 > deadline=`expr $start + 10`
17 > while [ ! -s .hg/store/journal ]; do
18 > sleep 0;
19 > if [ `date +%s` -gt $deadline ]; then
20 > echo "transaction did not start after 10 seconds" >&2;
21 > exit 1;
22 > fi
23 > done
15 > kill -HUP $P
24 > kill -HUP $P
16 > ) > p
25 > ) > p
17
26
General Comments 0
You need to be logged in to leave comments. Login now