tests: use 'hghave symlink' for tests using symlinks
[ original upstream message ]
--- a/tests/hghave Mon Nov 07 02:44:04 2011 +0100
+++ b/tests/hghave Mon Nov 07 03:14:54 2011 +0100
@@ -161,7 +161,7 @@
return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
def has_symlink():
- return hasattr(os, "symlink")
+ return hasattr(os, "symlink") # FIXME: should also check file system and os
def has_tla():
return matchoutput('tla --version 2>&1', r'The GNU Arch Revision')
--- a/tests/test-keyword.t Mon Nov 07 02:44:04 2011 +0100
+++ b/tests/test-keyword.t Mon Nov 07 03:14:54 2011 +0100
@@ -1,3 +1,5 @@
+ $ "$TESTDIR/hghave" symlink || exit 80
+
$ cat <<EOF >> $HGRCPATH
> [extensions]
> keyword =