From: Matthieu Moy Date: Tue, 17 Jul 2012 18:19:16 GMT Subject: Re: [PATCH 2/3] Testing: XDG config files: Use "$HOME" and "$XDG_CONFIG_HOME" explicitly Message-ID: In-Reply-To: Michael Witten writes: > The tests in: > > t/t1306-xdg-files.sh > > relied on brittle conventions: > > * "$HOME" and "$XDG_CONFIG_HOME" having certain values. > > * The testing commands having a certain current working > directory; Other tests (t1305-config-include.sh at least) use the fact that the tests are ran in $HOME. I'm not sure if we want to change that. About XDG_CONFIG_HOME, the tests were just assuming it was unset. > +GIT_CONFIG_DIR=$XDG_CONFIG_HOME/git As I said in my earlier message, I'd rather test the default value ($HOME/.config/git) than the particular case whe $XDG_CONFIG_HOME is set. -- Matthieu Moy http://www-verimag.imag.fr/~moy/