# HG changeset patch # User Dirkjan Ochtman # Date 2008-05-23 14:50:17 # Node ID 59f7b804352fa5cebd67085c8336c2596d3159af # Parent 4d3a60d5c490b757b22df54e5591cd5530b1d44e tests: don't run test-convert-cvs if there's no cvs server diff --git a/tests/hghave b/tests/hghave --- a/tests/hghave +++ b/tests/hghave @@ -25,7 +25,8 @@ def has_baz(): return matchoutput('baz --version 2>&1', r'baz Bazaar version') def has_cvs(): - return matchoutput('cvs --version 2>&1', r'Concurrent Versions System') + re = r'Concurrent Versions System.*?server' + return matchoutput('cvs --version 2>&1', re) def has_cvsps(): return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True) @@ -120,7 +121,7 @@ def has_pygments(): checks = { "baz": (has_baz, "GNU Arch baz client"), - "cvs": (has_cvs, "cvs client"), + "cvs": (has_cvs, "cvs client/server"), "cvsps": (has_cvsps, "cvsps utility"), "darcs": (has_darcs, "darcs client"), "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),