test-convert-mtn.t: use #if to set mtndir to the correct value
authorPatrick Mezard <patrick@mezard.eu>
Fri, 03 Aug 2012 17:26:30 +0200
changeset 17449 3d1b64bc8150
parent 17448 507e8f94b26a
child 17450 9c362a497eae
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.
tests/test-convert-mtn.t
--- 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