# HG changeset patch # User Mads Kiilerich # Date 1269391404 -3600 # Node ID 0cb61a4f5c5012ceb06e7831639a0377b86f8369 # Parent 2017d7b24abe361cdf39908f458c3b40ca70cd82 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 [ original upstream message ] diff -r 2017d7b24abe -r 0cb61a4f5c50 tests/test-keyword --- a/tests/test-keyword Wed Mar 17 15:04:07 2010 +0100 +++ b/tests/test-keyword Wed Mar 24 01:43:24 2010 +0100 @@ -87,8 +87,8 @@ diff a hooktest echo % removing commit hook from config -sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook -mv $HGRCPATH.nohook $HGRCPATH +sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nohook +mv "$HGRCPATH".nohook "$HGRCPATH" rm hooktest echo % bundle @@ -115,8 +115,8 @@ hg pull -u ../kw.hg 2>&1 | sed -e '/^Content-Type:/,/^diffs (/ d' echo % remove notify config -sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify -mv $HGRCPATH.nonotify $HGRCPATH +sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nonotify +mv "$HGRCPATH".nonotify "$HGRCPATH" echo % touch touch a b @@ -364,7 +364,7 @@ echo % hg cat hg cat sym a b echo -rm $HGRCPATH +rm "$HGRCPATH" echo % cat cat a b echo % hg cat