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