# HG changeset patch # User Mads Kiilerich # Date 1320632095 -3600 # Node ID e1f05d7a8c7b027fdc503667fab7115c0097899d # Parent a1914d214579becc9481738120791612761fecdf tests: use 'hghave no-windows' to avoid testing reserved file names on windows diff -r a1914d214579 -r e1f05d7a8c7b tests/hghave --- a/tests/hghave Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/hghave Mon Nov 07 03:14:55 2011 +0100 @@ -209,6 +209,9 @@ except ImportError: return False +def has_windows(): + return os.name == 'nt' + checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), @@ -239,6 +242,7 @@ "symlink": (has_symlink, "symbolic links"), "tla": (has_tla, "GNU Arch tla client"), "unix-permissions": (has_unix_permissions, "unix-style permissions"), + "windows": (has_windows, "Windows"), } def list_features(): diff -r a1914d214579 -r e1f05d7a8c7b tests/test-add.t --- a/tests/test-add.t Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/test-add.t Mon Nov 07 03:14:55 2011 +0100 @@ -1,3 +1,5 @@ + $ "$TESTDIR/hghave" no-windows || exit 80 + $ hg init a $ cd a $ echo a > a diff -r a1914d214579 -r e1f05d7a8c7b tests/test-addremove.t --- a/tests/test-addremove.t Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/test-addremove.t Mon Nov 07 03:14:55 2011 +0100 @@ -1,3 +1,5 @@ + $ "$TESTDIR/hghave" no-windows || exit 80 + $ hg init rep $ cd rep $ mkdir dir diff -r a1914d214579 -r e1f05d7a8c7b tests/test-hardlinks.t --- a/tests/test-hardlinks.t Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/test-hardlinks.t Mon Nov 07 03:14:55 2011 +0100 @@ -1,3 +1,5 @@ + $ "$TESTDIR/hghave" no-windows || exit 80 + $ cat > nlinks.py < import os, sys > for f in sorted(sys.stdin.readlines()): diff -r a1914d214579 -r e1f05d7a8c7b tests/test-init.t --- a/tests/test-init.t Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/test-init.t Mon Nov 07 03:14:55 2011 +0100 @@ -1,3 +1,5 @@ + $ "$TESTDIR/hghave" no-windows || exit 80 + This test tries to exercise the ssh functionality with a dummy script $ checknewrepo() diff -r a1914d214579 -r e1f05d7a8c7b tests/test-walk.t --- a/tests/test-walk.t Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/test-walk.t Mon Nov 07 03:14:55 2011 +0100 @@ -1,3 +1,5 @@ + $ "$TESTDIR/hghave" no-windows || exit 80 + $ hg init t $ cd t $ mkdir -p beans