[llvm] [Dexter] Add ability to rewrite scripts to fill-in unknown values (PR #202799)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 05:59:39 PDT 2026
================
@@ -313,6 +325,22 @@ def _run_test(self, test_name):
return
self._record_steps(test_name, steps)
if self.context.options.use_script:
+ # Before evaluating, the script may contain "unknown" expects; if they should be rewritten, then do so
+ # first, and then use the rewritten script to evaluate.
+ script_writer = ScriptExpectWriter(self.context, steps)
+ if script_writer.new_script:
+ self.context.logger.note(
+ f"Rewrote script to add {script_writer.num_successful_rewrites} expected values."
+ )
+ if script_writer.num_unsuccessful_rewrites:
+ self.context.logger.warning(
----------------
jmorse wrote:
Should this not be an error?
https://github.com/llvm/llvm-project/pull/202799
More information about the llvm-commits
mailing list