Bug 27631 - Tests fail in master due to use of stale files in ~/.cache
Summary: Tests fail in master due to use of stale files in ~/.cache
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: mission-control (show other bugs)
Version: git master
Hardware: Other All
: high normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/sm...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-04-14 06:05 UTC by Simon McVittie
Modified: 2010-04-14 06:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.