This is an archive of the discontinued LLVM Phabricator instance.

[lit] Move argument parsing/validation to separate file
ClosedPublic

Authored by yln on Oct 4 2019, 5:09 PM.

Event Timeline

yln created this revision.Oct 4 2019, 5:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2019, 5:09 PM

LGTM otherwise

llvm/utils/lit/lit/main.py
237

nitpicking: PEP8 recommends `sort(key=by_mtime, reverse=True)`

yln updated this revision to Diff 223622.Oct 7 2019, 9:54 AM
yln marked 2 inline comments as done.

Ensure refactored code follows Python style guide.

llvm/utils/lit/lit/main.py
237

Fixed. Thanks! :)

yln added a comment.Oct 9 2019, 5:43 PM

@serge-sans-paille: I am assuming that you are again fine with this, but I would more comfortable landing this with the official green check mark. ;)

serge-sans-paille accepted this revision.Oct 9 2019, 9:49 PM
This revision is now accepted and ready to land.Oct 9 2019, 9:49 PM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Oct 10 2019, 11:42 AM

Looks like the --threads option disappeared in the move, which angers the libc++ testsuite.

Hi @yln,

The disappeared --threads is causing LIT failures in our internal build bots. Can you please take a look? Thanks!

Steven

yln added a comment.Oct 10 2019, 12:44 PM

Added back the --threads option alias in b858895c859712e7c0f4e1c5e0436bd20cbe0c34.
Apologies for the churn.