mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
tests: use 'hghave no-windows' to avoid testing reserved file names on windows
This commit is contained in:
parent
72ebeacea3
commit
8344ac235d
@ -209,6 +209,9 @@ def has_ssl():
|
||||
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 @@ checks = {
|
||||
"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():
|
||||
|
@ -1,3 +1,5 @@
|
||||
$ "$TESTDIR/hghave" no-windows || exit 80
|
||||
|
||||
$ hg init a
|
||||
$ cd a
|
||||
$ echo a > a
|
||||
|
@ -1,3 +1,5 @@
|
||||
$ "$TESTDIR/hghave" no-windows || exit 80
|
||||
|
||||
$ hg init rep
|
||||
$ cd rep
|
||||
$ mkdir dir
|
||||
|
@ -1,3 +1,5 @@
|
||||
$ "$TESTDIR/hghave" no-windows || exit 80
|
||||
|
||||
$ cat > nlinks.py <<EOF
|
||||
> import os, sys
|
||||
> for f in sorted(sys.stdin.readlines()):
|
||||
|
@ -1,3 +1,5 @@
|
||||
$ "$TESTDIR/hghave" no-windows || exit 80
|
||||
|
||||
This test tries to exercise the ssh functionality with a dummy script
|
||||
|
||||
$ checknewrepo()
|
||||
|
@ -1,3 +1,5 @@
|
||||
$ "$TESTDIR/hghave" no-windows || exit 80
|
||||
|
||||
$ hg init t
|
||||
$ cd t
|
||||
$ mkdir -p beans
|
||||
|
Loading…
Reference in New Issue
Block a user