changeset 35815:b5df7fcf5d80 stable

test-bookmarks-pushpull: stabilize for Windows
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 31 Jan 2018 23:01:44 -0500
parents 92b7039613d0
children f6ca1e11d8b4
files tests/test-bookmarks-pushpull.t
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bookmarks-pushpull.t	Thu Feb 01 16:46:12 2018 +0800
+++ b/tests/test-bookmarks-pushpull.t	Wed Jan 31 23:01:44 2018 -0500
@@ -1202,9 +1202,13 @@
 
 Forbid bookmark move on the server
 
+  $ cat << EOF >> $TESTDIR/no-bm-move.sh
+  > #!/bin/sh
+  > echo \$HG_NAMESPACE | grep -v bookmarks
+  > EOF
   $ cat << EOF >> server/.hg/hgrc
   > [hooks]
-  > prepushkey.no-bm-move= echo \$HG_NAMESPACE | grep -v bookmarks
+  > prepushkey.no-bm-move= sh $TESTDIR/no-bm-move.sh
   > EOF
 
 pushing changeset is okay