path: root/test
diff options
authorPhilip Chimento <>2013-11-27 20:09:10 -0800
committerPhilip Chimento <>2013-11-27 20:09:10 -0800
commit789d44d5bcfa224803864f087ef979d48d80afdd (patch)
treef07382dfc584d680183528ebe8a9a493dad2e038 /test
parentdde829bd1c4173ad469bae0bd90f2bcad4e88f75 (diff)
Set XDG_CONFIG_HOME to a temporary directory
This works around the race condition in GIO ( while having the added benefit of not cluttering one's own config directory with a bunch of files every time the tests are run. [endlessm/eos-sdk#357]
Diffstat (limited to 'test')
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ b/test/
index dc8b662..81cae8c 100644
--- a/test/
+++ b/test/
@@ -57,7 +57,10 @@ AM_LOG_FLAGS = -k --verbose
# Use locally built versions of Endless-0.gir and libraries; this may need to be
# changed to AM_TESTS_ENVIRONMENT in a future version of Automake
+# Set XDG_CONFIG_HOME so as to avoid cluttering the user's actual config
+# directory with junk from the tests
export GI_TYPELIB_PATH="$(top_builddir)$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}"; \
export LD_LIBRARY_PATH="$(top_builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}"; \
+ export XDG_CONFIG_HOME=`mktemp -d $${TMPDIR:-/tmp}/sdktestconfig.XXXXXXXX`; \