[PATCH] D77365: [lit] Cleanly exit on user keyboard interrupt
Julian Lettner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 21:41:23 PDT 2020
yln created this revision.
yln added reviewers: rnk, jdenny, serge-sans-paille, probinson.
Herald added subscribers: llvm-commits, delcypher.
Herald added a project: LLVM.
yln added a comment.
I tested this on macOS and Linux.
@rnk @jdenny
Can you try Windows? If it doesn't work we can put back the `_install_win32_signal_handler` part.
Graceful lit shutdown on user keyboard interrupt [Ctrl+C] was a
longstanding goal of mine. After a few refactorings this revision
finally enables it.
Printing of a helpful summary for interrupted runs (just as the one for
completed runs) will be tackled in future revisions.
I tested this on macOS and Linux.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77365
Files:
llvm/utils/lit/lit/main.py
llvm/utils/lit/lit/run.py
llvm/utils/lit/lit/util.py
llvm/utils/lit/lit/worker.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77365.254701.patch
Type: text/x-patch
Size: 4549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200403/366ce43e/attachment.bin>
More information about the llvm-commits
mailing list