Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/testcases.py @ 177:aed52e3fa5a0 2.01
Fixed crashing on stdio=False with _unix
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 20 Jun 2011 16:00:45 +0300 |
parents | 93bf6b333c99 |
children |
comparison
equal
deleted
inserted
replaced
173:a79a58101eba | 177:aed52e3fa5a0 |
---|---|
247 callback() | 247 callback() |
248 outfile.seek(0) | 248 outfile.seek(0) |
249 return case.validate(outfile) | 249 return case.validate(outfile) |
250 else: | 250 else: |
251 case.infile.copy(case.problem.config.inname) | 251 case.infile.copy(case.problem.config.inname) |
252 call(case.problem.config.path, case=case, stdin=devnull, stdout=devnull, stderr=STDOUT) | 252 call(case.problem.config.path, case=case, stdin=devnull, stdout=devnull, stderr=devnull) |
253 if config.globalconf.force_zero_exitcode and case.process.returncode or case.process.returncode < 0: | 253 if config.globalconf.force_zero_exitcode and case.process.returncode or case.process.returncode < 0: |
254 raise NonZeroExitCode(case.process.returncode) | 254 raise NonZeroExitCode(case.process.returncode) |
255 case.has_called_back = True | 255 case.has_called_back = True |
256 callback() | 256 callback() |
257 try: | 257 try: |