[Patch][LNT] fix python error in compile.py when runN failed

Steven Wu shengzhao_wu at apple.com
Mon Jun 23 14:41:34 PDT 2014


LNT currently throws python errors when runN failed in compile.py. It throws error messages about it cannot parse stdout, stderr is not empty and runN does not return 0. 
Ideally, the check after runN should performed in the opposite order. stdout shouldn’t be parsed if runN does not return 0. Since it is expected that runN can fail during the test, g_log.error should be used to print the error instead of throw python error messages.

Please commit it for me after review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runN_failed.patch
Type: application/octet-stream
Size: 1025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140623/4a51278b/attachment.obj>


More information about the llvm-commits mailing list