[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#940594: Tests fail when applying new upstream commit



I think I sorted it out. While some of the tests interact with $HOME, the sbuild user when autobuilding does not have a real $HOME, but just "/sbuild-nonexistent". So I changed debian/rules as shown in the attached diff. Besides fixing my problem, it allowed me to also enable the ibus-bus test.

I don't know if that is the correct/best way to deal with it, but it seems to work:

https://launchpad.net/~gunnarhj/+archive/ubuntu/ibus-test2/+packages

I suppose this is worth considering for Debian as well.

--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
--- ibus-1.5.21/debian/rules
+++ ibus-1.5.21/debian/rules
@@ -62,4 +62,5 @@
 	dh_makeshlibs -Nibus-gtk -Nibus-gtk3 -- -c4
 
 override_dh_auto_test:
-	dh_auto_test -- DISABLE_GUI_TESTS="ibus-bus ibus-compose ibus-keypress test-stress"
+	mkdir -p /tmp/test-home/.cache
+	dh_auto_test -- DISABLE_GUI_TESTS="ibus-compose ibus-keypress test-stress" HOME=/tmp/test-home


Reply to: