~knitzsche/apport/apport-valgrind-pkging

« back to all changes in this revision

Viewing changes to test/test_signal_crashes.py

  • Committer: Martin Pitt
  • Date: 2012-12-05 23:28:07 UTC
  • Revision ID: martin.pitt@canonical.com-20121205232807-rk86m3lywbd7zdq7
Merge from trunk: Consistently use ignore file without $HOME. Fixes
running as root, and autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                   'ProcCmdline', 'ProcEnviron', 'ProcMaps', 'Signal',
20
20
                   'UserGroups']
21
21
 
 
22
orig_home = os.getenv('HOME')
 
23
if orig_home is not None:
 
24
    del os.environ['HOME']
22
25
ifpath = os.path.expanduser(apport.report._ignore_file)
 
26
if orig_home is not None:
 
27
    os.environ['HOME'] = orig_home
23
28
 
24
29
 
25
30
class T(unittest.TestCase):