Mercurial > hg
diff tests/test-progress.t @ 16350:4f795f5fbb0b stable
tests: make tests work if directory contains special characters
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 19:06:35 +0200 |
parents | 695ac6aca77f |
children | f29f187ee73d |
line wrap: on
line diff
--- a/tests/test-progress.t Tue Apr 03 16:36:25 2012 +0200 +++ b/tests/test-progress.t Tue Apr 03 19:06:35 2012 +0200 @@ -46,14 +46,14 @@ test default params, display nothing because of delay - $ hg -y loop 3 2>&1 | $TESTDIR/filtercr.py + $ hg -y loop 3 2>&1 | "$TESTDIR/filtercr.py" $ echo "delay=0" >> $HGRCPATH $ echo "refresh=0" >> $HGRCPATH test with delay=0, refresh=0 - $ hg -y loop 3 2>&1 | $TESTDIR/filtercr.py + $ hg -y loop 3 2>&1 | "$TESTDIR/filtercr.py" loop [ ] 0/3 loop [===============> ] 1/3 @@ -64,7 +64,7 @@ test nested short-lived topics (which shouldn't display with nestdelay): $ hg -y loop 3 --nested 2>&1 | \ - > python $TESTDIR/filtercr.py + > python "$TESTDIR/filtercr.py" loop [ ] 0/3 loop [===============> ] 1/3 @@ -73,7 +73,7 @@ $ hg --config progress.changedelay=0 -y loop 3 --nested 2>&1 | \ - > python $TESTDIR/filtercr.py + > python "$TESTDIR/filtercr.py" loop [ ] 0/3 nested [ ] 0/2 @@ -90,7 +90,7 @@ test two topics being printed in parallel (as when we're doing a local --pull clone, where you get the unbundle and bundle progress at the same time): - $ hg loop 3 --parallel 2>&1 | python $TESTDIR/filtercr.py + $ hg loop 3 --parallel 2>&1 | python "$TESTDIR/filtercr.py" loop [ ] 0/3 loop [===============> ] 1/3 @@ -98,13 +98,13 @@ \r (esc) test refresh is taken in account - $ hg -y --config progress.refresh=100 loop 3 2>&1 | $TESTDIR/filtercr.py + $ hg -y --config progress.refresh=100 loop 3 2>&1 | "$TESTDIR/filtercr.py" test format options 1 $ hg -y --config 'progress.format=number topic item+2' loop 2 2>&1 \ - > | $TESTDIR/filtercr.py + > | "$TESTDIR/filtercr.py" 0/2 loop lo 1/2 loop lo @@ -113,7 +113,7 @@ test format options 2 $ hg -y --config 'progress.format=number item-3 bar' loop 2 2>&1 \ - > | $TESTDIR/filtercr.py + > | "$TESTDIR/filtercr.py" 0/2 p.0 [ ] 1/2 p.1 [=======================> ] @@ -122,7 +122,7 @@ test format options and indeterminate progress $ hg -y --config 'progress.format=number item bar' loop -- -2 2>&1 \ - > | $TESTDIR/filtercr.py + > | "$TESTDIR/filtercr.py" 0 loop.0 [ <=> ] 1 loop.1 [ <=> ] @@ -130,7 +130,7 @@ make sure things don't fall over if count > total - $ hg -y loop --total 4 6 2>&1 | $TESTDIR/filtercr.py + $ hg -y loop --total 4 6 2>&1 | "$TESTDIR/filtercr.py" loop [ ] 0/4 loop [===========> ] 1/4 @@ -142,7 +142,7 @@ test immediate progress completion - $ hg -y loop 0 2>&1 | $TESTDIR/filtercr.py + $ hg -y loop 0 2>&1 | "$TESTDIR/filtercr.py" test delay time estimates @@ -173,7 +173,7 @@ $ echo "delay=25" >> $HGRCPATH $ echo "width=60" >> $HGRCPATH - $ hg -y loop 8 2>&1 | python $TESTDIR/filtercr.py + $ hg -y loop 8 2>&1 | python "$TESTDIR/filtercr.py" loop [=========> ] 2/8 1m07s loop [===============> ] 3/8 56s @@ -183,7 +183,7 @@ loop [=====================================> ] 7/8 12s \r (esc) - $ MOCKTIME=10000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py + $ MOCKTIME=10000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py" loop [ ] 0/4 loop [=========> ] 1/4 8h21m @@ -191,7 +191,7 @@ loop [==============================> ] 3/4 2h47m \r (esc) - $ MOCKTIME=1000000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py + $ MOCKTIME=1000000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py" loop [ ] 0/4 loop [=========> ] 1/4 5w00d @@ -200,7 +200,7 @@ \r (esc) - $ MOCKTIME=14000000 hg -y loop 4 2>&1 | python $TESTDIR/filtercr.py + $ MOCKTIME=14000000 hg -y loop 4 2>&1 | python "$TESTDIR/filtercr.py" loop [ ] 0/4 loop [=========> ] 1/4 1y18w @@ -209,7 +209,7 @@ \r (esc) Time estimates should not fail when there's no end point: - $ hg -y loop -- -4 2>&1 | python $TESTDIR/filtercr.py + $ hg -y loop -- -4 2>&1 | python "$TESTDIR/filtercr.py" loop [ <=> ] 2 loop [ <=> ] 3