~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(Andrew Bennetts, Robert Collins) Create a new test helper start_bzr_subprocess which is paired with finish_bzr_subprocess, allowing tests that need to interact with the upcoming bzr serve command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2767
2767
            pass
2768
2768
        
2769
2769
 
 
2770
class cmd_wait_until_signalled(Command):
 
2771
    """Test helper for test_start_and_stop_bzr_subprocess_send_signal.
 
2772
 
 
2773
    This just prints a line to signal when it is ready, then blocks on stdin.
 
2774
    """
 
2775
 
 
2776
    hidden = True
 
2777
 
 
2778
    def run(self):
 
2779
        sys.stdout.write("running\n")
 
2780
        sys.stdout.flush()
 
2781
        sys.stdin.readline()
 
2782
 
2770
2783
 
2771
2784
# command-line interpretation helper for merge-related commands
2772
2785
def merge(other_revision, base_revision,