[Bug 5769] New: test-largefiles-misc test failure: find -printf

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Jan 10 08:04:30 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=5769

            Bug ID: 5769
           Summary: test-largefiles-misc test failure: find -printf
           Product: Mercurial
           Version: 4.4.2
          Hardware: All
                OS: NetBSD
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: largefiles
          Assignee: bugzilla at mercurial-scm.org
          Reporter: tk at giga.or.at
                CC: mercurial-devel at mercurial-scm.org, natosha at gmail.com

The test-largefiles-misc test fails on NetBSD, because NetBSD's find does not
support the "-printf" command.

AFAICT this also affects FreeBSD and OpenBSD.

Perhaps this test can be changed to use the more portable -print?

---
/scratch/devel/py-mercurial/work/mercurial-4.4.2/tests/test-largefiles-misc.t
+++
/scratch/devel/py-mercurial/work/mercurial-4.4.2/tests/test-largefiles-misc.t.err
@@ -1101,31 +1101,13 @@

   $ cd subrepo-root
   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir/
-  .hglf/dir/subdir/
-  .hglf/dir/subdir/large.bin
-  .hglf/large
-  dir/
-  dir/subdir/
-  dir/subdir/large.bin
-  large
-  large.orig
+  find: -printf: unknown option

   $ hg mv dir/subdir dir/subdir2
   moving .hglf/dir/subdir/large.bin to .hglf/dir/subdir2/large.bin (glob)

   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir/
-  .hglf/dir/subdir2/
-  .hglf/dir/subdir2/large.bin
-  .hglf/large
-  dir/
-  dir/subdir2/
-  dir/subdir2/large.bin
-  large
-  large.orig
+  find: -printf: unknown option
   $ hg status -C
   A dir/subdir2/large.bin
     dir/subdir/large.bin
@@ -1156,18 +1138,7 @@
 The standin for subdir2 should be deleted, not just dropped

   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir/
-  .hglf/dir/subdir/
-  .hglf/dir/subdir/large.bin
-  .hglf/large
-  dir/
-  dir/subdir/
-  dir/subdir/large.bin
-  dir/subdir2/
-  dir/subdir2/large.bin
-  large
-  large.orig
+  find: -printf: unknown option

   $ rm -r dir/subdir2

@@ -1183,16 +1154,7 @@
   ? large.orig

   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir/
-  .hglf/dir/subdir2/
-  .hglf/dir/subdir2/large.bin
-  .hglf/large
-  dir/
-  dir/subdir2/
-  dir/subdir2/large.bin
-  large
-  large.orig
+  find: -printf: unknown option

 Start from scratch, and rename something other than the final path component.

@@ -1208,15 +1170,7 @@
   R dir/subdir/large.bin

   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir2/
-  .hglf/dir2/subdir/
-  .hglf/dir2/subdir/large.bin
-  .hglf/large
-  dir2/
-  dir2/subdir/
-  dir2/subdir/large.bin
-  large
+  find: -printf: unknown option

   $ hg revert --all
   undeleting .hglf/dir/subdir/large.bin (glob)
@@ -1227,18 +1181,7 @@
   ? dir2/subdir/large.bin

   $ listtree .hglf dir* large*
-  .hglf/
-  .hglf/dir/
-  .hglf/dir/subdir/
-  .hglf/dir/subdir/large.bin
-  .hglf/large
-  dir/
-  dir/subdir/
-  dir/subdir/large.bin
-  dir2/
-  dir2/subdir/
-  dir2/subdir/large.bin
-  large
+  find: -printf: unknown option

   $ cd ../..


ERROR: test-largefiles-misc.t output changed

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


More information about the Mercurial-devel mailing list