tests: use 'hghave symlink' for tests using symlinks stable
authorMads Kiilerich <mads@kiilerich.com>
Mon, 07 Nov 2011 03:14:54 +0100
branchstable
changeset 1010 13862cca5537
parent 1009 0c737b00568d
child 1011 565c2e4d216e
tests: use 'hghave symlink' for tests using symlinks [ original upstream message ]
tests/hghave
tests/test-keyword.t
--- 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 =