forward the flutter_realm input property to env var.

This input property will be provided by: https://github.com/flutter/cocoon/pull/4089

Change-Id: I199dfc542f642479473122792fd994969cd37beb
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/61460
Commit-Queue: Christopher Fujino <fujino@google.com>
Reviewed-by: John McDole <codefu@google.com>
diff --git a/recipe_modules/repo_util/api.py b/recipe_modules/repo_util/api.py
index ef7e105..2bc0fd2 100644
--- a/recipe_modules/repo_util/api.py
+++ b/recipe_modules/repo_util/api.py
@@ -446,6 +446,9 @@
             self.get_commit(checkout_path),
     }
     self.add_property_env_variables(env)
+    flutter_realm = self.m.properties.get('flutter_realm', False)
+    if flutter_realm:
+      env['FLUTTER_REALM'] = flutter_realm
     if self.m.properties.get('gn_artifacts', False):
       env['FLUTTER_STORAGE_BASE_URL'
          ] = 'https://storage.googleapis.com/flutter_archives_v2'
diff --git a/recipe_modules/repo_util/examples/full.expected/force_get_candidate_branch.json b/recipe_modules/repo_util/examples/full.expected/force_get_candidate_branch.json
index c70a153..816c581 100644
--- a/recipe_modules/repo_util/examples/full.expected/force_get_candidate_branch.json
+++ b/recipe_modules/repo_util/examples/full.expected/force_get_candidate_branch.json
@@ -53,7 +53,7 @@
       "           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
       "  File \"RECIPE_REPO[flutter]/recipe_modules/repo_util/examples/full.py\", line 28, in RunSteps",
       "    api.repo_util.release_candidate_branch(flutter_checkout_path)",
-      "  File \"RECIPE_REPO[flutter]/recipe_modules/repo_util/api.py\", line 605, in release_candidate_branch",
+      "  File \"RECIPE_REPO[flutter]/recipe_modules/repo_util/api.py\", line 608, in release_candidate_branch",
       "    raise ValueError('Not a release candidate branch: %s' % candidate_branch)",
       "ValueError: Not a release candidate branch: refs/pull/1/head"
     ]
diff --git a/recipe_modules/repo_util/examples/full.py b/recipe_modules/repo_util/examples/full.py
index 0926462..64dbc8e 100644
--- a/recipe_modules/repo_util/examples/full.py
+++ b/recipe_modules/repo_util/examples/full.py
@@ -326,6 +326,10 @@
   )
   yield api.test(
       'fusion',
-      api.properties(config_name='build_config.json', is_fusion=True),
+      api.properties(
+          config_name='build_config.json',
+          is_fusion=True,
+          flutter_realm='foo-realm',
+          ),
       api.repo_util.flutter_environment_data(),
   )