Bug 27631

Summary: Tests fail in master due to use of stale files in ~/.cache
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: mission-controlAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: high CC: vivek
Version: git masterKeywords: patch
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/telepathy-mission-control-smcv.git;a=shortlog;h=refs/heads/trivia
Whiteboard:
i915 platform: i915 features:

Description Simon McVittie 2010-04-14 06:05:38 UTC
Tests are not correctly isolated from the normal configuration directories in master.

My trivia branch also contains a merge from the stable branch I've proposed (Bug #27630).

commit 0901a0a6c90e24621e35ac35e5cd88fa20c2a205
Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date:   2010-04-14 13:58:28 +0100

    Set the right environment variable to run tests with a temporary version of ~/.cache

diff --git a/test/twisted/Makefile.am b/test/twisted/Makefile.am
index af64b56..ca4c863 100644
--- a/test/twisted/Makefile.am
+++ b/test/twisted/Makefile.am
@@ -127,7 +127,7 @@ BASIC_TESTS_ENVIRONMENT = \
        XDG_CONFIG_DIRS=@abs_top_srcdir@/test/twisted \
        XDG_DATA_HOME=@abs_top_builddir@/test/twisted/tmp-$(TMPSUFFIX) \
        XDG_DATA_DIRS=@abs_top_srcdir@/test/twisted \
-       XDG_CACHE_DIR=@abs_top_builddir@/test/twisted/tmp-$(TMPSUFFIX) \
+       XDG_CACHE_HOME=@abs_top_builddir@/test/twisted/tmp-$(TMPSUFFIX) \
        MC_CLIENTS_DIR=@abs_top_srcdir@/test/twisted/telepathy/clients \
        MC_MANAGER_DIR=@abs_top_srcdir@/test/twisted/telepathy/managers \
        G_DEBUG=fatal_criticals
Comment 1 Simon McVittie 2010-04-14 06:16:43 UTC
Fixed by cherry-picking that patch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.