tests: quote paths in shell script hooks
Without the quoting, MSYS will remove the '\' directory separators, and the repo
can't be opened.
--- a/tests/test-bookmarks.t Sat Apr 01 14:48:39 2017 -0400
+++ b/tests/test-bookmarks.t Sat Apr 01 15:23:26 2017 -0400
@@ -924,9 +924,9 @@
$ cat > $TESTTMP/checkpending.sh <<EOF
> echo "@repo"
- > hg -R $TESTTMP/repo bookmarks
+ > hg -R "$TESTTMP/repo" bookmarks
> echo "@unrelated"
- > hg -R $TESTTMP/unrelated bookmarks
+ > hg -R "$TESTTMP/unrelated" bookmarks
> exit 1 # to avoid adding new bookmark for subsequent tests
> EOF
--- a/tests/test-hook.t Sat Apr 01 14:48:39 2017 -0400
+++ b/tests/test-hook.t Sat Apr 01 15:23:26 2017 -0400
@@ -857,9 +857,9 @@
$ cat > $TESTTMP/checkpending.sh <<EOF
> echo '@a'
- > hg -R $TESTTMP/a tip -q
+ > hg -R "$TESTTMP/a" tip -q
> echo '@a/nested'
- > hg -R $TESTTMP/a/nested tip -q
+ > hg -R "$TESTTMP/a/nested" tip -q
> exit 1 # to avoid adding new revision for subsequent tests
> EOF
$ hg init nested
--- a/tests/test-phases.t Sat Apr 01 14:48:39 2017 -0400
+++ b/tests/test-phases.t Sat Apr 01 15:23:26 2017 -0400
@@ -609,9 +609,9 @@
$ cat > $TESTTMP/checkpending.sh <<EOF
> echo '@initialrepo'
- > hg -R $TESTTMP/initialrepo phase 7
+ > hg -R "$TESTTMP/initialrepo" phase 7
> echo '@push-dest'
- > hg -R $TESTTMP/push-dest phase 6
+ > hg -R "$TESTTMP/push-dest" phase 6
> exit 1 # to avoid changing phase for subsequent tests
> EOF
$ cd ../initialrepo
--- a/tests/test-share.t Sat Apr 01 14:48:39 2017 -0400
+++ b/tests/test-share.t Sat Apr 01 15:23:26 2017 -0400
@@ -168,11 +168,11 @@
$ cat > $TESTTMP/checkbookmarks.sh <<EOF
> echo "@repo1"
- > hg -R $TESTTMP/repo1 bookmarks
+ > hg -R "$TESTTMP/repo1" bookmarks
> echo "@repo2"
- > hg -R $TESTTMP/repo2 bookmarks
+ > hg -R "$TESTTMP/repo2" bookmarks
> echo "@repo3"
- > hg -R $TESTTMP/repo3 bookmarks
+ > hg -R "$TESTTMP/repo3" bookmarks
> exit 1 # to avoid adding new bookmark for subsequent tests
> EOF