Skip older monotone versions for tests.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 24 Mar 2008 22:49:33 +0100
changeset 6384 8bc876e03143
parent 6383 38485d45f947
child 6385 0d4e068e9e52
Skip older monotone versions for tests. test-convert-mtn is known to work with 0.37 and 0.38, but fails with 0.31 (Debian etch). hghave now skips all versions up to 0.31.
tests/hghave
--- a/tests/hghave	Mon Mar 24 22:09:01 2008 +0100
+++ b/tests/hghave	Mon Mar 24 22:49:33 2008 +0100
@@ -31,10 +31,11 @@
     return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True)
 
 def has_darcs():
-    return matchoutput('darcs', 'darcs version', True)
+    return matchoutput('darcs', r'darcs version', True)
 
 def has_mtn():
-    return matchoutput('mtn --version', 'monotone', True)
+    return matchoutput('mtn --version', r'monotone', True) and not matchoutput(
+        'mtn --version', r'monotone 0\.(\d|[12]\d|3[01])[^\d]', True)
 
 def has_eol_in_paths():
     try:
@@ -128,7 +129,7 @@
     "git": (has_git, "git command line client"),
     "hotshot": (has_hotshot, "python hotshot module"),
     "lsprof": (has_lsprof, "python lsprof module"),
-    "mtn": (has_mtn, "monotone client"),
+    "mtn": (has_mtn, "monotone client (> 0.31)"),
     "svn": (has_svn, "subversion client and admin tools"),
     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
     "symlink": (has_symlink, "symbolic links"),