test_signal_crashes.py uses user's configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The apport test_test_
[main]
unpackaged: True
Then the tests, unpackaged_binary and unpackaged_script at least, will fail because a .crash file ends up being created for those when they should not.
I tried resolving it by manually setting apport.
$ bzr cdiff test/test_
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -48,6 +48,12 @@
+ # don't user user configuration
+ self.orig_
+ f = tempfile.
+ apport.
+ f.close()
+
# move aside current ignore file
@@ -69,6 +75,9 @@
+ # restore configuration
+ apport.
+
# clean up our ignore file
if os.path.
Changed in apport: | |
status: | New → Confirmed |
tags: | added: id-59f36d42d7de21cc9c1cbaae |
Suggest handling this by setting XDG_CONFIG_HOME or HOME in the environment of the tests, pointing to a pristine directory.