Mercurial > hg
diff tests/test-rollback @ 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 | a5f3f9b1c42a |
children | 4c94b6d0fb1c |
line wrap: on
line diff
--- a/tests/test-rollback Fri Mar 26 17:02:49 2010 +0100 +++ b/tests/test-rollback Wed Mar 24 01:43:24 2010 +0100 @@ -42,7 +42,7 @@ #!/bin/sh echo "another precious commit message" > "$1" __EOF__ -chmod +x $HGTMP/editor -HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=false commit 2>&1 | sed 's,exited with status .*,exited ...,g' +chmod +x "$HGTMP"/editor +HGEDITOR="'$HGTMP'"/editor hg --config hooks.pretxncommit=false commit 2>&1 | sed 's,exited with status .*,exited ...,g' echo '.hg/last-message.txt:' cat .hg/last-message.txt