OSDN Git Service

Merging r339179 and r339184:
authorHans Wennborg <hans@hanshq.net>
Mon, 13 Aug 2018 08:15:58 +0000 (08:15 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 13 Aug 2018 08:15:58 +0000 (08:15 +0000)
commitc2e9eb3416f0904716a98c02ee12d805a53b597a
treed4b45696e3de8639538418aad11231c7c27b18d1
parent5a09a6b1e4a5984ecd4e0f915b52e5b268bced99
Merging r339179 and r339184:
------------------------------------------------------------------------
r339179 | stella.stamenova | 2018-08-07 22:54:38 +0200 (Tue, 07 Aug 2018) | 12 lines

[lit, python3] Update lit error logging to work correctly in python3 and other test fixes

Summary:
In Python2 'unicode' is a distinct type from 'str', but in Python3 'unicode' does not exist and instead all 'str' objects are Unicode string. This change updates the logic in the test logging for lit to correctly process each of the types, and more importantly, to not just fail in Python3.

This change also reverses the use of quotes in several of the cfg files. By using '""' we are guaranteeing that the resulting path will work correctly on Windows while "''" only works correctly sometimes. This also fixes one of the failing tests.

Reviewers: asmith, zturner

Subscribers: stella.stamenova, delcypher, llvm-commits

Differential Revision: https://reviews.llvm.org/D50397
------------------------------------------------------------------------

------------------------------------------------------------------------
r339184 | stella.stamenova | 2018-08-07 23:21:30 +0200 (Tue, 07 Aug 2018) | 3 lines

[lit] Disable shtest-timeout on Windows

This test passes on Windows when using Python 3 but fails when using Python 2, so it needs more investigation before it can be enabled as the bots use Python 2.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@339542 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/Test.py
utils/lit/lit/llvm/config.py
utils/lit/tests/Inputs/shtest-env/lit.cfg
utils/lit/tests/Inputs/shtest-shell/lit.cfg
utils/lit/tests/Inputs/shtest-timeout/lit.cfg
utils/lit/tests/lit.cfg