[Bug 4064] New: test-generaldelta.t is broken on OS X because du does not support option -b

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Oct 21 07:01:58 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=4064

          Priority: normal
            Bug ID: 4064
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: test-generaldelta.t is broken on OS X because du does
                    not support option -b
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: simohe at besonet.ch
          Hardware: Other
            Status: UNCONFIRMED
           Version: 2.8-rc
         Component: Mercurial
           Product: Mercurial

The utility "du" seems not to support the option -b when running on OS X. This
is used in test-generaldelta.t (since introduction of test in e92650e39f1c
[1]).
The failure message can be seen at buildbot [2].
According to the man page, du -b displays the files real size (not on disc) in
bytes. I do not find an alternative for "-b" on the man page for apple [3].

Maybe we could use "ls -l" instead of du. Stat can also return the size, on
linux this is "stat -c %s", on OS X "stat -f %s".

[1] http://hg.intevation.org/mercurial/rev/e92650e39f1c
[2]
http://hgbuildbot.kublai.com/builders/OS%20X%2010.8%20hg%20tests/builds/31/steps/run-tests.py%20%28python2.6%29/logs/stdio
[3] http://linux.die.net/man/1/du
[4]
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/du.1.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list