From: Zac Medico Date: Sat, 14 Aug 2010 05:02:09 +0000 (-0700) Subject: Add a SIGUSR1 handling to trigger pdb.set_trace(). X-Git-Tag: v2.2_rc68~225 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8389b036914d3be02da85ee2d4d8166e729c347f;p=portage.git Add a SIGUSR1 handling to trigger pdb.set_trace(). --- diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests index 05dd773c9..6b3311d28 100755 --- a/pym/portage/tests/runTests +++ b/pym/portage/tests/runTests @@ -7,6 +7,12 @@ import os, sys import os.path as osp import grp import pwd +import signal + +def debug_signal(signum, frame): + import pdb + pdb.set_trace() +signal.signal(signal.SIGUSR1, debug_signal) # Pretend that the current user's uid/gid are the 'portage' uid/gid, # so things go smoothly regardless of the current user and global