tests/blacklists/linux-vfat
author Jun Wu <quark@fb.com>
Wed, 11 Oct 2017 21:24:32 -0700
changeset 34643 f42dec9c976e
parent 20622 352abbb0be88
permissions -rw-r--r--
hgweb: do not import uuid immediately to avoid its side effect With hgdemandimport disabled (chg's case), `import uuid` has an immediate side effect calling `ctypes.util.find_library` trying to locate the `libuuid` library. This happens at `import` time before `dispatch.run()`. The call trace is like: File "hg/hg", line 54, in <module> from mercurial import ( File "hg/mercurial/dispatch.py", line 24, in <module> from . import ( File "hg/mercurial/commands.py", line 23, in <module> from . import ( File "hg/mercurial/help.py", line 33, in <module> from .hgweb import ( File "hg/mercurial/hgweb/__init__.py", line 20, in <module> from . import ( File "hg/mercurial/hgweb/hgweb_mod.py", line 14, in <module> from .common import ( File "hg/mercurial/hgweb/common.py", line 15, in <module> import uuid File "/usr/lib64/python2.7/uuid.py", line 404, in <module> lib = ctypes.CDLL(ctypes.util.find_library(libname)) The problem is, `ctypes.util.find_library` will execute `sh -c '/sbin/ldconfig -p 2>/dev/null'` on Python <= 2.7.12. The output of `sh` may pollute the terminal: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory This patch moves `import uuid` so its side-effect can only happen after the cwd check in `dispatch._getlocal`. Therefore the terminal won't be polluted by importing `uuid`. Differential Revision: https://phab.mercurial-scm.org/D1024
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16339
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
# invalid filenames
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     2
test-add.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     3
test-init.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     4
test-clone.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     5
test-contrib.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     6
test-hgweb-raw.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     7
test-walk.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     8
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     9
# no sockets or fifos
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    10
test-hup.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    11
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    12
# no hardlinks
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    13
test-hardlinks.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    14
test-relink.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    15
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    16
# exec bit problems
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    17
test-convert-bzr-114.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    18
test-convert-bzr-directories.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    19
test-convert-bzr-merges.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    20
test-convert-bzr-treeroot.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    21
test-convert-darcs.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    22
test-merge-tools.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    23
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    24
# debugstate exec bit false positives
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    25
test-dirstate.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    26
test-filebranch.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    27
test-merge-remove.t