From 826f84808dd44507eee8454eee8b3c5ec2d51c0f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 3 May 2021 22:41:21 +0200 Subject: debian/rules: Make really really sure that unit tests are not run in parallel (although this looks ugly). --- debian/rules | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/debian/rules b/debian/rules index d4c149e..7783b5d 100755 --- a/debian/rules +++ b/debian/rules @@ -61,14 +61,18 @@ override_dh_install: dh_install -plibayatana-appindicator0.1-cil-dev --fail-missing --sourcedir=debian/tmp/gtk2; \ fi -override_dh_auto_test: $(FLAVORS:%=dotest-%) +override_dh_auto_test: + mkdir -p $(CURDIR)/debian/tmphome-gtk2 + export HOME=$(CURDIR)/debian/tmphome-gtk2 && dh_auto_test --no-parallel --builddirectory=build/gtk2 + # 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 $(CURDIR)/debian/tmphome-gtk2 -dotest-%: - mkdir -p $(CURDIR)/debian/tmphome-$* - export HOME=$(CURDIR)/debian/tmphome-$* && dh_auto_test --no-parallel --builddirectory=build/$* + mkdir -p $(CURDIR)/debian/tmphome-gtk3 + export HOME=$(CURDIR)/debian/tmphome-gtk3 && dh_auto_test --no-parallel --builddirectory=build/gtk3 # 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-$* + if [ -e build/gtk3/tests/test-suite.log ]; then cat build/gtk3/tests/test-suite.log; fi + rm -Rf $(CURDIR)/debian/tmphome-gtk3 override_dh_auto_clean: dh_auto_clean -- cgit v1.2.3