sapling/eden/integration/lib
Jun Wu 7af4ada776 load system hgrc for hg commands without HGRCPATH
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
2020-03-31 13:04:22 -07:00
..
CMakeLists.txt support building the integration tests with CMake 2019-10-04 08:56:38 -07:00
eden_server_inspector.py Tidy up license headers 2019-10-11 05:28:23 -07:00
edenclient.py replace explicit casts with pyre-ignore comments for T38947910 2020-03-30 21:23:02 -07:00
edenfs_systemd.py replace explicit casts with pyre-ignore comments for T38947910 2020-03-30 21:23:02 -07:00
error.py Tidy up license headers 2019-10-11 05:28:23 -07:00
fake_edenfs.py replace explicit casts with pyre-ignore comments for T38947910 2020-03-30 21:23:02 -07:00
find_executables.py replace explicit casts with pyre-ignore comments for T38947910 2020-03-30 21:23:02 -07:00
gitrepo.py Update pyre version for eden 2019-10-16 16:56:29 -07:00
hgrepo.py load system hgrc for hg commands without HGRCPATH 2020-03-31 13:04:22 -07:00
linux.py Tidy up license headers 2019-10-11 05:28:23 -07:00
overlay.py Tidy up license headers 2019-10-11 05:28:23 -07:00
pexpect.py Tidy up license headers 2019-10-11 05:28:23 -07:00
repobase.py Tidy up license headers 2019-10-11 05:28:23 -07:00
service_test_case.py Update pyre version for eden 2019-10-31 15:31:07 -07:00
systemd.py replace explicit casts with pyre-ignore comments for T38947910 2020-03-30 21:23:02 -07:00
temporary_directory.py Tidy up license headers 2019-10-11 05:28:23 -07:00
testcase.py use a NullTelemetryLogger during integration tests 2020-03-03 14:56:49 -08:00
util.py Tidy up license headers 2019-10-11 05:28:23 -07:00