Commit Graph

5 Commits

Author SHA1 Message Date
Kuba (Brecka) Mracek
c65054ad28 Remove remaining uses of "%T". (#13227) 2017-12-06 09:46:43 -08:00
Bob Wilson
4b382fbaac [master-next] fix flake8 complaints about test/swift_test.py
The python-lint test was failing with:
./test/swift_test.py:35:1: W293 blank line contains whitespace
./test/swift_test.py:36:80: E501 line too long (87 > 79 characters)
./test/swift_test.py:37:80: E501 line too long (84 > 79 characters)
./test/swift_test.py:40:80: E501 line too long (82 > 79 characters)
./test/swift_test.py:41:26: E701 multiple statements on one line (colon)
2017-08-01 14:59:06 -07:00
Greg Parker
7b009eccde Merge remote-tracking branch 'origin/master' into master-next 2017-06-28 15:25:17 -07:00
Bob Wilson
3106112a01 Fix issues reported by python-lint test. 2017-04-10 23:23:28 -07:00
Bob Wilson
7b75291625 Fix Swift lit tests after LLVM r299775
LLVM's lit implementation switched to use process pools in r299775.
This exposed some pickling problems in Swift's lit files. For a function
or class to be pickle-able, it has to be in the top-level of a real
Python module.

* The SwiftTest lit format class was embedded in the lit.cfg file, so
I moved it out to a separate Python file.

* The inferSwiftBinary function was being stashed in the
config.inferSwiftBinary field and later used to find tools for SourceKit
testing. I moved the config settings for those tools into the top-level
lit.cfg file. I expect this will cause warnings about them not existing
in some cases, but that should be fairly harmless. Maybe someone can
come up with a better solution later.

* The config.substitutions for SourceKit's lit.local.cfg was storing a
reference to an embedded sed_clean function, which just returned a
constant string. I changed the function to be a string, using Python's
raw string feature to avoid the problems that likely led to it being a
function in the first place. (Just guessing.)
2017-04-10 11:07:42 -07:00