From c11784bad17f2c7316da3d2c693bff180f3eccde Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 23 Jul 2020 08:11:05 +0200 Subject: debian/rules: Explicitly set XDG_CACHE_HOME during unit tests, too. Hope this amends the dconf errors spotted lately. --- debian/rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index c47ed8c..8ad670f 100755 --- a/debian/rules +++ b/debian/rules @@ -64,8 +64,8 @@ override_dh_install: override_dh_auto_test: $(FLAVORS:%=dotest-%) dotest-%: - mkdir -p $(CURDIR)/debian/tmphome - export HOME=$(CURDIR)/debian/tmphome && dh_auto_test --builddirectory=build/$* -- || true + mkdir -p $(CURDIR)/debian/tmphome/.cache + export HOME=$(CURDIR)/debian/tmphome && export XDG_CACHE_HOME=$(CURDIR)/debian/tmphome/.cache && dh_auto_test --builddirectory=build/$* -- || true # View test's log file for better debugging of problems when built in clean chroots. if [ -e build/$*/tests/test-suite.log ]; then cat build/$*/tests/test-suite.log; fi rm -Rf $(CURDIR)/debian/tmphome -- cgit v1.2.3