changeset 17449:3d1b64bc8150

test-convert-mtn.t: use #if to set mtndir to the correct value Monotone store directory name is not the same on Windows and Unix.
author Patrick Mezard <patrick@mezard.eu>
date Fri, 03 Aug 2012 17:26:30 +0200
parents 507e8f94b26a
children 9c362a497eae
files tests/test-convert-mtn.t
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-convert-mtn.t	Fri Aug 03 17:56:34 2012 +0200
+++ b/tests/test-convert-mtn.t	Fri Aug 03 17:26:30 2012 +0200
@@ -2,9 +2,18 @@
   $ "$TESTDIR/hghave" mtn || exit 80
 
 Monotone directory is called .monotone on *nix and monotone
-on Windows. Having a variable here ease test patching.
+on Windows.
+
+#if windows
+
+  $ mtndir=monotone
+
+#else
 
   $ mtndir=.monotone
+
+#endif
+
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "convert=" >> $HGRCPATH
   $ echo 'graphlog =' >> $HGRCPATH