diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-11-11 12:47:09 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-11-11 12:47:09 +0100 |
commit | 865dd829c572bc16445b86606a89723f8716056d (patch) | |
tree | dabb49e3f2dd3c5d880f1a5ff91ccc47d5d9e15c | |
parent | 7ded69df0608c9556f7e4b75076cf73f4b6f66b7 (diff) | |
download | libayatana-appindicator-865dd829c572bc16445b86606a89723f8716056d.tar.gz libayatana-appindicator-865dd829c572bc16445b86606a89723f8716056d.tar.bz2 libayatana-appindicator-865dd829c572bc16445b86606a89723f8716056d.zip |
debian/rules: Provide temporary home for test suite runs.
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules index 2a6da00..17a3bd6 100755 --- a/debian/rules +++ b/debian/rules @@ -75,21 +75,23 @@ override_dh_install: override_dh_auto_test: $(FLAVORS:%=dotest-%) dotest-%: - dh_auto_test --builddirectory=build/$* -- || true + mkdir -p $(pwd)/debian/tmphome + HOME=$(pwd)/debian/tmphome dh_auto_test 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 $(pwd)/debian/tmphome dotest-gtk2: $(PY_VERSIONS:%=dotestgtk2-%) # GTK2 flavor test was run on a per-python-version basis. dotestgtk2-%: - ps -ef - env + mkdir -p $(pwd)/debian/tmphome PYTHON=`which $*` \ - dh_auto_test --builddirectory=build/gtk2 -- || true + HOME=$(pwd)/debian/tmphome dh_auto_test --builddirectory=build/gtk2 -- || true # View test's log file for better debugging of problems when built in clean chroots. if [ -e build/gtk2/tests/test-suite.log ]; then cat build/gtk2/tests/test-suite.log; fi + rm -Rf $(pwd)/debian/tmphome override_dh_auto_clean: dh_auto_clean |