Mercurial > hg
diff tests/f @ 23911:593a5cd709a2
tests: teach f not to report directory size
It's not meaningful or portable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 17 Jan 2015 13:53:16 -0800 |
parents | bead0c7b4f68 |
children | 7d0aa6269ece |
line wrap: on
line diff
--- a/tests/f Sat Jan 17 13:44:43 2015 -0800 +++ b/tests/f Sat Jan 17 13:53:16 2015 -0800 @@ -61,7 +61,7 @@ facts.append('type unknown') if not isstdin: stat = os.lstat(f) - if opts.size: + if opts.size and not isdir: facts.append('size=%s' % stat.st_size) if opts.mode: facts.append('mode=%o' % (stat.st_mode & 0777))