Mercurial > hg > config
comparison python/multiproc.py @ 616:41133baea90d
STUB: python/multiproc.py
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sun, 02 Feb 2014 19:42:11 -0800 |
| parents | 6db42d965f0e |
| children | 3da0a7caf07e |
comparison
equal
deleted
inserted
replaced
| 615:6db42d965f0e | 616:41133baea90d |
|---|---|
| 184 proc.kill() | 184 proc.kill() |
| 185 | 185 |
| 186 if options.sleep: | 186 if options.sleep: |
| 187 time.sleep(options.sleep) | 187 time.sleep(options.sleep) |
| 188 | 188 |
| 189 if process_output is not None: | 189 if process_output is None: |
| 190 # process the output with ``.read()`` call | 190 # process the output with ``.read()`` call |
| 191 proc.read(output_processor) | 191 read = proc.read() |
| 192 output_processor(read) | |
| 192 | 193 |
| 193 # correctness tests | 194 # correctness tests |
| 194 assert proc.end is not None | 195 assert proc.end is not None |
| 195 | 196 |
| 196 # print summary | 197 # print summary |
