summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-13 22:02:09 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-13 22:02:09 -0700
commit8389b036914d3be02da85ee2d4d8166e729c347f (patch)
tree751fd2492d984b114be9d38c5fda8025da4e9559
parenta3e9c36fd8d199bb5ecbbfa3eb50e451bafd8b86 (diff)
downloadportage-8389b036914d3be02da85ee2d4d8166e729c347f.tar.gz
portage-8389b036914d3be02da85ee2d4d8166e729c347f.tar.bz2
portage-8389b036914d3be02da85ee2d4d8166e729c347f.zip
Add a SIGUSR1 handling to trigger pdb.set_trace().
-rwxr-xr-xpym/portage/tests/runTests6
1 files changed, 6 insertions, 0 deletions
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