Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-diffs.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 | 3b689001e7c6 |
children | 8c14f87bd0ae |
line wrap: on
line diff
--- a/tests/test-hgweb-diffs.t Fri Jun 05 22:53:15 2015 -0400 +++ b/tests/test-hgweb-diffs.t Mon Jun 08 14:44:30 2015 -0500 @@ -36,7 +36,7 @@ revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rev/0' + $ get-with-headers.py localhost:$HGPORT 'rev/0' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -168,7 +168,7 @@ raw revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' + $ get-with-headers.py localhost:$HGPORT 'raw-rev/0' 200 Script output follows @@ -201,7 +201,7 @@ $ hg parents --template "{node|short}\n" -r tip b 0cd96de13884 - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/b' + $ get-with-headers.py localhost:$HGPORT 'diff/tip/b' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -302,13 +302,13 @@ set up hgweb with git diffs - $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS + $ killdaemons.py $DAEMON_PIDS $ hg serve --config 'diff.git=1' -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log $ cat hg.pid >> $DAEMON_PIDS revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rev/0' + $ get-with-headers.py localhost:$HGPORT 'rev/0' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -442,7 +442,7 @@ revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' + $ get-with-headers.py localhost:$HGPORT 'raw-rev/0' 200 Script output follows @@ -477,7 +477,7 @@ $ hg parents --template "{node|short}\n" -r tip a 0cd96de13884 - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/a' + $ get-with-headers.py localhost:$HGPORT 'diff/tip/a' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -580,7 +580,7 @@ $ hg log --template "{rev}:{node|short}\n" -r 0 0:0cd96de13884 - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'comparison/0/a' + $ get-with-headers.py localhost:$HGPORT 'comparison/0/a' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -707,7 +707,7 @@ $ hg log --template "{rev}:{node|short}\n" -r tip 2:d73db4d812ff - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'comparison/tip/a' + $ get-with-headers.py localhost:$HGPORT 'comparison/tip/a' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -836,7 +836,7 @@ $ hg log --template "{rev}:{node|short}\n" -r tip 3:20e80271eb7a - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'comparison/tip/a' + $ get-with-headers.py localhost:$HGPORT 'comparison/tip/a' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -971,7 +971,7 @@ $ hg parents --template "{rev}:{node|short}\n" -r tip e 4:402bea3b0976 - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'comparison/tip/e' + $ get-with-headers.py localhost:$HGPORT 'comparison/tip/e' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -1094,7 +1094,7 @@ raw revision with diff block numbers - $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS + $ killdaemons.py $DAEMON_PIDS $ cat <<EOF > .hg/hgrc > [web] > templates = rawdiff @@ -1114,7 +1114,7 @@ > EOF $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' + $ get-with-headers.py localhost:$HGPORT 'raw-rev/0' 200 Script output follows Block: 1 @@ -1131,7 +1131,7 @@ @@ -0,0 +1,1 @@ +b - $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS + $ killdaemons.py $DAEMON_PIDS $ rm .hg/hgrc rawdiff/map $ rmdir rawdiff $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log