- Extract separate function for running tests from main
- Push single-usage imports to point of usage
- Remove unnecessary sys.exit(0) calls
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm
llvm/utils/lit/lit/main.py | ||
---|---|---|
32 | Unrelated, but I wonder if we should augment this logic to garbage collect old lit_tmp_ directories that are 24+ hours old. I routinely find lots of leaked lit_tmp_ directories because oftentimes the parent Python process is killed before it gets to the finally block below. |
llvm/utils/lit/lit/main.py | ||
---|---|---|
32 | One of the improvements for lit that I want to explore is graceful shutdown on CTRL+C. If that isn't possible, we should implement your suggestion. |
Unrelated, but I wonder if we should augment this logic to garbage collect old lit_tmp_ directories that are 24+ hours old. I routinely find lots of leaked lit_tmp_ directories because oftentimes the parent Python process is killed before it gets to the finally block below.