# HG changeset patch # User Mads Kiilerich # Date 1320632095 -3600 # Node ID e00f510320417218cabe55e0a9a696bb5beb436b # Parent 018ef69bbe2f362fc5c0f2be64f05b6c8d5b4a4e tests: use 'hghave system-sh' to guard tests that requires sh in system() [ original upstream message ] diff -r 018ef69bbe2f -r e00f51032041 tests/hghave --- a/tests/hghave Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/hghave Mon Nov 07 03:14:55 2011 +0100 @@ -212,6 +212,9 @@ def has_windows(): return os.name == 'nt' +def has_system_sh(): + return os.name != 'nt' + checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), @@ -240,6 +243,7 @@ "svn15": (has_svn15, "subversion client and admin tools >= 1.5"), "svn-bindings": (has_svn_bindings, "subversion python bindings"), "symlink": (has_symlink, "symbolic links"), + "system-sh": (has_system_sh, "system() uses sh"), "tla": (has_tla, "GNU Arch tla client"), "unix-permissions": (has_unix_permissions, "unix-style permissions"), "windows": (has_windows, "Windows"),