Mercurial > hg-stable
comparison tests/test-hgweb-empty.t @ 25472:4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
$TESTDIR is added to the path, so this is superfluous. Also,
inconsistent use of quotes means we might have broken on tests with
paths containing spaces.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 08 Jun 2015 14:44:30 -0500 |
parents | 169d2470d283 |
children | 3bb6f5f478a7 |
comparison
equal
deleted
inserted
replaced
25470:378a8e700e02 | 25472:4d2b9b304ad0 |
---|---|
4 | 4 |
5 $ hg init test | 5 $ hg init test |
6 $ cd test | 6 $ cd test |
7 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | 7 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
8 $ cat hg.pid >> $DAEMON_PIDS | 8 $ cat hg.pid >> $DAEMON_PIDS |
9 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'shortlog') | 9 $ (get-with-headers.py localhost:$HGPORT 'shortlog') |
10 200 Script output follows | 10 200 Script output follows |
11 | 11 |
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | 12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
13 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | 13 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
14 <head> | 14 <head> |
115 </body> | 115 </body> |
116 </html> | 116 </html> |
117 | 117 |
118 $ echo babar | 118 $ echo babar |
119 babar | 119 babar |
120 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log') | 120 $ (get-with-headers.py localhost:$HGPORT 'log') |
121 200 Script output follows | 121 200 Script output follows |
122 | 122 |
123 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | 123 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
124 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | 124 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
125 <head> | 125 <head> |
224 | 224 |
225 | 225 |
226 </body> | 226 </body> |
227 </html> | 227 </html> |
228 | 228 |
229 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'graph') | 229 $ (get-with-headers.py localhost:$HGPORT 'graph') |
230 200 Script output follows | 230 200 Script output follows |
231 | 231 |
232 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | 232 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
233 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | 233 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
234 <head> | 234 <head> |
378 | 378 |
379 | 379 |
380 </body> | 380 </body> |
381 </html> | 381 </html> |
382 | 382 |
383 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file') | 383 $ (get-with-headers.py localhost:$HGPORT 'file') |
384 200 Script output follows | 384 200 Script output follows |
385 | 385 |
386 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | 386 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
387 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | 387 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
388 <head> | 388 <head> |