mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
7af4ada776
Summary: It turns out that eden integration tests do not always set HGRCPATH for hg commands it executes. The testing library (integration/lib/hgrepo.py) sets HGRCPATH for hg commands it runs. However there are other code paths that bypass the HGRCPATH setting. For example: - hg debugimporthelper started by edenfs does not have HGRCPATH set. - hg log -r . -T{node} started by fs/cli/util.py does not have HGRCPATH set. That caused issues. For example, without HGRCPATH, the real system hgrc is loaded, and that can be different from the in-repo hgrc, causing issues like migrating "narrow-heads" down and up, which pollutes stderr and fails tests. Increase test robustness by adding an `%include $HGRCPATH` in the repo hgrc so commands without HGRCPATH still load the desired system hgrc. Reviewed By: chadaustin Differential Revision: D20769184 fbshipit-source-id: 8992bfb95250b6cccb9ebcf4bbaa0a76d50480dd |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
eden_server_inspector.py | ||
edenclient.py | ||
edenfs_systemd.py | ||
error.py | ||
fake_edenfs.py | ||
find_executables.py | ||
gitrepo.py | ||
hgrepo.py | ||
linux.py | ||
overlay.py | ||
pexpect.py | ||
repobase.py | ||
service_test_case.py | ||
systemd.py | ||
temporary_directory.py | ||
testcase.py | ||
util.py |