utr: preserve recipe property as builder_recipe
Because the recipe will overwrite the recipe input property we need
to store this in another property so the UTR recipe can know which
recipe it's supposed to mimic
Bug: 41492688
Change-Id: Ie6beabb516079982e0106a49330591d19cffb6ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5383674
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1276925}
diff --git a/tools/utr/recipe.py b/tools/utr/recipe.py
index de185b4..26b469a8 100644
--- a/tools/utr/recipe.py
+++ b/tools/utr/recipe.py
@@ -100,6 +100,10 @@
input_props['test_names'] = tests
if build_dir:
input_props['build_dir'] = build_dir
+ # The recipe will overwrite this property so we have to put it preserve it
+ # elsewhere
+ if 'recipe' in input_props:
+ input_props['builder_recipe'] = input_props['recipe']
mode = 'RUN_TYPE_COMPILE_AND_RUN'
assert not (skip_compile and skip_test)