sapling/eden/scm/tests/test-xdg.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

26 lines
672 B
Perl

#chg-compatible
#debugruntest-compatible
#if no-windows no-osx
$ eagerepo
$ setconfig config.use-rust=true
$ mkdir -p xdgconf/sapling
$ echo '[ui]' > xdgconf/sapling/sapling.conf
$ echo 'username = foobar' >> xdgconf/sapling/sapling.conf
$ XDG_CONFIG_HOME="`pwd`/xdgconf" ; export XDG_CONFIG_HOME
$ unset HGRCPATH
$ unset SL_CONFIG_PATH
$ hg config ui.username 2>/dev/null
foobar
$ mkdir -p home/.config/sapling
$ echo '[ui]' > home/.config/sapling/sapling.conf
$ echo 'username = bazbaz' >> home/.config/sapling/sapling.conf
$ HOME="`pwd`/home" ; export HOME
$ unset XDG_CONFIG_HOME
$ hg config ui.username 2>/dev/null
bazbaz
#endif