Mercurial > public > mercurial-scm > hg
diff tests/test-archive.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 | bd625cd4e5e7 |
children | 8c14f87bd0ae |
line wrap: on
line diff
--- a/tests/test-archive.t Fri Jun 05 22:53:15 2015 -0400 +++ b/tests/test-archive.t Mon Jun 08 14:44:30 2015 -0500 @@ -27,11 +27,11 @@ > hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log > cat hg.pid >> $DAEMON_PIDS > echo % $1 allowed should give 200 - > "$TESTDIR/get-with-headers.py" localhost:$HGPORT "archive/tip.$2" | head -n 1 + > get-with-headers.py localhost:$HGPORT "archive/tip.$2" | head -n 1 > echo % $3 and $4 disallowed should both give 403 - > "$TESTDIR/get-with-headers.py" localhost:$HGPORT "archive/tip.$3" | head -n 1 - > "$TESTDIR/get-with-headers.py" localhost:$HGPORT "archive/tip.$4" | head -n 1 - > "$TESTDIR/killdaemons.py" $DAEMON_PIDS + > get-with-headers.py localhost:$HGPORT "archive/tip.$3" | head -n 1 + > get-with-headers.py localhost:$HGPORT "archive/tip.$4" | head -n 1 + > killdaemons.py $DAEMON_PIDS > cat errors.log > cp .hg/hgrc-base .hg/hgrc > } @@ -63,7 +63,7 @@ invalid arch type should give 404 - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT "archive/tip.invalid" | head -n 1 + $ get-with-headers.py localhost:$HGPORT "archive/tip.invalid" | head -n 1 404 Unsupported archive type: None $ TIP=`hg id -v | cut -f1 -d' '` @@ -134,7 +134,7 @@ $ python getarchive.py "$TIP" gz relre:baz HTTP Error 404: file(s) not found: relre:baz - $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS + $ killdaemons.py $DAEMON_PIDS $ hg archive -t tar test.tar $ tar tf test.tar