/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2009-03-13 07:54:48 UTC
  • mfrom: (4144 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4189.
  • Revision ID: mbp@sourcefrog.net-20090313075448-jlz1t7baz7gzipqn
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
    def test_breakin(self):
51
51
        # Break in to a debugger while bzr is running
52
 
        # we need to test against a command that will wait for 
 
52
        # we need to test against a command that will wait for
53
53
        # a while -- bzr serve should do
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()