sapling/eden/integration
Matt Glazar 4cd9eb3f1b Improve error message if XDG_RUNTIME_DIR is unset (systemd)
Summary:
On a systemd-managed system, the `XDG_RUNTIME_DIR` environment variable is set on login. `systemctl` uses this variable to know how to talk to the systemd user manager. If `XDG_RUNTIME_DIR` is not set in the environment, `systemctl` (and thus `eden start`) fails with an unhelpful message:

  Failed to connect to bus: No such file or directory

Improve this message by explicitly checking for the absence of `XDG_RUNTIME_DIR`.

Reviewed By: simpkins

Differential Revision: D13728111

fbshipit-source-id: a7f60fc29561acd05fbc1bf52d7968ae0e64d0c2
2019-01-18 15:42:20 -08:00
..
fsck Upgrade pyre version for eden 2018-12-18 11:15:40 -08:00
helpers update fake_edenfs to return its original arguments via thrift 2019-01-11 18:31:48 -08:00
hg move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
lib Test eden start failure messages with systemd integration 2019-01-18 14:30:53 -08:00
snapshot upgrade fbcode/eden version 2019-01-10 16:13:47 -08:00
basic_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
chown_test.py add member type annotations to make pyre happy 2018-11-14 13:03:09 -08:00
clone_test.py Improve Pyre workarounds for FindEXE 2019-01-18 12:31:08 -08:00
corrupt_overlay_test.py add type annotations to most of the integration test functions 2018-11-16 19:47:48 -08:00
debug_getpath_test.py fix str/bytes conversion for thrift API calls 2018-11-14 13:03:09 -08:00
doteden_test.py update the doteden_test code to use pathlib.Path 2018-11-12 20:25:29 -08:00
edenclient_test.py enable typechecking on Eden Python libraries 2018-08-03 15:07:00 -07:00
fsck_test.py update eden fsck to support fixing invalid inodes 2018-11-26 12:28:52 -08:00
glob_test.py define paths as binary rather than strings in the thrift interface 2018-08-11 01:35:49 -07:00
health_test.py upgrade fbcode/eden version 2019-01-10 16:13:47 -08:00
help_test.py improve the run_unchecked() API in the integration tests 2018-07-19 12:42:53 -07:00
hypothesis_simple_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
info_test.py remove support for non-toml configs 2018-10-10 12:49:16 -07:00
linux_cgroup_test.py Isolate systemd service cgroups on Sandcastle 2018-11-28 11:47:44 -08:00
materialized_query_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
mmap_test.py add member type annotations to make pyre happy 2018-11-14 13:03:09 -08:00
mount_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
oexcl_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
patch_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
persistence_test.py have Overlay track nextInodeNumber_ instead of InodeMap 2018-05-31 01:46:15 -07:00
rage_test.py Always run doctor checks in 'eden rage' 2019-01-14 14:04:11 -08:00
rc_test.py remove support for non-toml configs 2018-10-10 12:49:16 -07:00
remount_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
rename_test.py move creation of the .hg directory into the Eden CLI 2018-12-19 15:34:01 -08:00
repo_test.py remove support for non-toml configs 2018-10-10 12:49:16 -07:00
restart_test.py Improve Pyre workarounds for FindEXE 2019-01-18 12:31:08 -08:00
sed_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
service_log_test.py Make systemd service log to file 2018-12-17 15:14:55 -08:00
setattr_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
stale_test.py add type annotations to most of the integration test functions 2018-11-16 19:47:48 -08:00
start_test.py Improve Pyre workarounds for FindEXE 2019-01-18 12:31:08 -08:00
stop_test.py update ServiceTestCaseBase to keep everything in one tmp directory 2019-01-11 18:31:48 -08:00
systemd_fixture_test.py Test eden start failure messages with systemd integration 2019-01-18 14:30:53 -08:00
systemd_test.py Improve error message if XDG_RUNTIME_DIR is unset (systemd) 2019-01-18 15:42:20 -08:00
takeover_test.py add member type annotations to make pyre happy 2018-11-14 13:03:09 -08:00
thrift_test.py Fix crash for getSHA1(./hello) 2018-12-07 16:34:42 -08:00
unixsocket_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
unlink_test.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
xattr_test.py Update mypy to 0.641 2018-11-06 14:52:19 -08:00