[PATCH] D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 07:25:23 PDT 2023
xgupta marked 2 inline comments as done.
xgupta added inline comments.
================
Comment at: llvm/utils/lit/lit/TestRunner.py:1087
+ env = dict(test.config.environment) # Create a copy of the environment
+ env["LLVM_PROFILE_FILE"] = llvm_profile_file
+ commands[j] = f"export LLVM_PROFILE_FILE={llvm_profile_file} && {commands[j]}"
----------------
DavidSpickett wrote:
> This appears to get set but never used. Or I am missing something later in the code, if that's the case, consider making that more obvious e.g. declaring it outside the for loop.
Actually, this variable is being set for each RUN line in a test case so it is in the loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154280/new/
https://reviews.llvm.org/D154280
More information about the llvm-commits
mailing list