diff tests/f @ 23912:7d0aa6269ece

tests: teach f not to report symlink mode bits They're not meaningful or portable
author Matt Mackall <mpm@selenic.com>
date Sat, 17 Jan 2015 13:53:56 -0800
parents 593a5cd709a2
children 6686ae524f94
line wrap: on
line diff
--- a/tests/f	Sat Jan 17 13:53:16 2015 -0800
+++ b/tests/f	Sat Jan 17 13:53:56 2015 -0800
@@ -63,7 +63,7 @@
             stat = os.lstat(f)
             if opts.size and not isdir:
                 facts.append('size=%s' % stat.st_size)
-            if opts.mode:
+            if opts.mode and not islink:
                 facts.append('mode=%o' % (stat.st_mode & 0777))
             if opts.links:
                 facts.append('links=%s' % stat.st_nlink)