comparison tests/test-convert @ 10775:c52057614c72 stable

Tests with spaces in paths This allows most tests to succeed with ./run-tests.py --tmpdir='/tmp/hg test' and introduces other tests for spaces and shell quoting
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 24 Mar 2010 01:43:24 +0100
parents d5bd1beff794
children 9e4d120e3c32
comparison
equal deleted inserted replaced
10772:1e819576e926 10775:c52057614c72
47 47
48 echo % converting empty dir should fail "nicely" 48 echo % converting empty dir should fail "nicely"
49 mkdir emptydir 49 mkdir emptydir
50 # override $PATH to ensure p4 not visible; use $PYTHON in case we're 50 # override $PATH to ensure p4 not visible; use $PYTHON in case we're
51 # running from a devel copy, not a temp installation 51 # running from a devel copy, not a temp installation
52 PATH=$BINDIR $PYTHON $BINDIR/hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g' 52 PATH="$BINDIR" $PYTHON "$BINDIR"/hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g'
53 53
54 echo % convert with imaginary source type 54 echo % convert with imaginary source type
55 hg convert --source-type foo a a-foo 55 hg convert --source-type foo a a-foo
56 echo % convert with imaginary sink type 56 echo % convert with imaginary sink type
57 hg convert --dest-type foo a a-foo 57 hg convert --dest-type foo a a-foo