Show More
@@ -75,6 +75,7 b' testpats = [' | |||
|
75 | 75 | (r'^alias\b.*=', "don't use alias, use a function"), |
|
76 | 76 | (r'if\s*!', "don't use '!' to negate exit status"), |
|
77 | 77 | (r'/dev/u?random', "don't use entropy, use /dev/zero"), |
|
78 | (r'do\s*true;\s*done', "don't use true as loop body, use sleep 0"), | |
|
78 | 79 | ], |
|
79 | 80 | # warnings |
|
80 | 81 | [] |
@@ -98,8 +99,6 b' utestpats = [' | |||
|
98 | 99 | (uprefix + r'set -e', "don't use set -e"), |
|
99 | 100 | (uprefix + r'\s', "don't indent commands, use > for continued lines"), |
|
100 | 101 | (uprefixc + r'( *)\t', "don't use tabs to indent"), |
|
101 | (uprefixc + r'.*do\s*true;\s*done', | |
|
102 | "don't use true as loop body, use sleep 0"), | |
|
103 | 102 | ], |
|
104 | 103 | # warnings |
|
105 | 104 | [] |
@@ -20,7 +20,7 b'' | |||
|
20 | 20 | |
|
21 | 21 | $ python dumb.py 2> log & |
|
22 | 22 | $ P=$! |
|
23 |
$ while [ ! -f listening ]; do |
|
|
23 | $ while [ ! -f listening ]; do sleep 0; done | |
|
24 | 24 | $ hg clone http://localhost:$HGPORT/foo copy2 |
|
25 | 25 | abort: HTTP Error 404: * (glob) |
|
26 | 26 | [255] |
@@ -20,7 +20,7 b' Test raw style of hgweb' | |||
|
20 | 20 | $ cat hg.pid >> $DAEMON_PIDS |
|
21 | 21 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
22 | 22 | |
|
23 |
$ while kill `cat hg.pid` 2>/dev/null; do |
|
|
23 | $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done | |
|
24 | 24 | |
|
25 | 25 | $ cat getoutput.txt |
|
26 | 26 | 200 Script output follows |
@@ -41,7 +41,7 b' Test raw style of hgweb' | |||
|
41 | 41 | |
|
42 | 42 | $ cat hg.pid >> $DAEMON_PIDS |
|
43 | 43 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
44 |
$ while kill `cat hg.pid` 2>/dev/null; do |
|
|
44 | $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done | |
|
45 | 45 | |
|
46 | 46 | $ cat getoutput.txt |
|
47 | 47 | 200 Script output follows |
@@ -9,7 +9,7 b'' | |||
|
9 | 9 | $ cat hg.pid >> $DAEMON_PIDS |
|
10 | 10 | $ cd .. |
|
11 | 11 | $ "$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log 2>&1 </dev/null & |
|
12 |
$ while [ ! -f proxy.pid ]; do |
|
|
12 | $ while [ ! -f proxy.pid ]; do sleep 0; done | |
|
13 | 13 | $ cat proxy.pid >> $DAEMON_PIDS |
|
14 | 14 | |
|
15 | 15 | url for proxy, stream |
@@ -233,12 +233,12 b' Fingerprints' | |||
|
233 | 233 | $ hg -R copy-pull id https://127.0.0.1:$HGPORT/ |
|
234 | 234 | 5fed3813f7f5 |
|
235 | 235 | |
|
236 |
$ while kill `cat hg1.pid` 2>/dev/null; do |
|
|
236 | $ while kill `cat hg1.pid` 2>/dev/null; do sleep 0; done | |
|
237 | 237 | |
|
238 | 238 | Prepare for connecting through proxy |
|
239 | 239 | |
|
240 | 240 | $ "$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log </dev/null 2>&1 & |
|
241 |
$ while [ ! -f proxy.pid ]; do |
|
|
241 | $ while [ ! -f proxy.pid ]; do sleep 0; done | |
|
242 | 242 | $ cat proxy.pid >> $DAEMON_PIDS |
|
243 | 243 | |
|
244 | 244 | $ echo "[http_proxy]" >> copy-pull/.hg/hgrc |
General Comments 0
You need to be logged in to leave comments.
Login now