Mercurial > ~astiob > upreckon > hgweb
comparison unix.py @ 94:b7fb64ce03d9
Fixed a couple of bugs
| author | Oleg Oshmyan <chortos@inbox.lv> |
|---|---|
| date | Mon, 28 Feb 2011 21:35:25 +0000 |
| parents | c62c9bfd614a |
| children | 995502cdafc6 |
comparison
equal
deleted
inserted
replaced
| 93:bd3fc9017f91 | 94:b7fb64ce03d9 |
|---|---|
| 57 def call(*args, **kwargs): | 57 def call(*args, **kwargs): |
| 58 case = kwargs.pop('case') | 58 case = kwargs.pop('case') |
| 59 try: | 59 try: |
| 60 case.process = Popen(*args, **kwargs) | 60 case.process = Popen(*args, **kwargs) |
| 61 except OSError: | 61 except OSError: |
| 62 raise CannotStartTestee(sys.exc_info()[1]) | 62 raise testcases.CannotStartTestee(sys.exc_info()[1]) |
| 63 case.time_started = clock() | 63 case.time_started = clock() |
| 64 if not case.maxtime: | 64 if not case.maxtime: |
| 65 while True: | 65 while True: |
| 66 exitcode, now = case.process.poll(), clock() | 66 exitcode, now = case.process.poll(), clock() |
| 67 if exitcode is not None: | 67 if exitcode is not None: |
