# HG changeset patch # User Mads Kiilerich # Date 1320632094 -3600 # Node ID 13862cca553756951531a5420869d7c6acceb67f # Parent 0c737b00568d3fd84d6e6724251c8b2105dcc53d tests: use 'hghave symlink' for tests using symlinks [ original upstream message ] diff -r 0c737b00568d -r 13862cca5537 tests/hghave --- 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') diff -r 0c737b00568d -r 13862cca5537 tests/test-keyword.t --- 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 <> $HGRCPATH > [extensions] > keyword =