[PATCH 3 of 8 v2] tests: change blackbox test to work cross platform

Yuya Nishihara yuya at tcha.org
Tue Feb 9 07:54:58 EST 2016


On Mon, 08 Feb 2016 00:15:05 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1454523318 0
> #      Wed Feb 03 18:15:18 2016 +0000
> # Node ID 39070e1fa7fed120e63cc5f28ac49b3e826dc6c1
> # Parent  d3f1b7ee5e7091afa7bf8059013ddfb3b385a37c
> tests: change blackbox test to work cross platform

Queued 3-5, 7 and 8, thanks.

>    $ hg blackbox -l 3
> -  abort: Permission denied: $TESTTMP/blackboxtest2/.hg/blackbox.log
> +  abort: *: $TESTTMP/blackboxtest2/.hg/blackbox.log (glob)

Relaxed this line a bit more because the output differs on Windows.

> +  $ sed -e 's/\(.*test1.*\)/#\1/; s#\(.*commit2.*\)#os.rmdir(".hg/blackbox.log")\nos.rename(".hg/blackbox.log-", ".hg/blackbox.log")\n\1#' $TESTDIR/test-dispatch.py > ../test-dispatch.py

Hmm, I think it's better to create a new script instead of rewriting existing
one by pattern, but queued as is.


More information about the Mercurial-devel mailing list