~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_breakin.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-27 17:55:32 UTC
  • mfrom: (3955.1.8 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090127175532-221guyk1hom2fzli
(jml) Refactor 'cmd_serve' to make it easier to extend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        proc = self.start_bzr_subprocess(self._test_process_args,
55
55
                env_changes=dict(BZR_SIGQUIT_PDB=None))
56
56
        # wait for it to get started, and print the 'listening' line
57
 
        proc.stdout.readline()
 
57
        proc.stderr.readline()
58
58
        # first sigquit pops into debugger
59
59
        os.kill(proc.pid, signal.SIGQUIT)
60
60
        proc.stdin.write("q\n")
67
67
        proc = self.start_bzr_subprocess(self._test_process_args,
68
68
                env_changes=dict(BZR_SIGQUIT_PDB=None))
69
69
        # wait for it to get started, and print the 'listening' line
70
 
        proc.stdout.readline()
 
70
        proc.stderr.readline()
71
71
        # break into the debugger
72
72
        os.kill(proc.pid, signal.SIGQUIT)
73
73
        # now send a second sigquit, which should cause it to exit.  That
93
93
        proc = self.start_bzr_subprocess(self._test_process_args,
94
94
                env_changes=dict(BZR_SIGQUIT_PDB='0'))
95
95
        # wait for it to get started, and print the 'listening' line
96
 
        proc.stdout.readline()
 
96
        proc.stderr.readline()
97
97
        # first hit should just kill it
98
98
        os.kill(proc.pid, signal.SIGQUIT)
99
99
        proc.wait()