File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -199,14 +199,15 @@ def is_running_in_evg_pipeline():
199199class MissingEnvironmentVariable (Exception ):
200200 pass
201201
202+
202203def is_running_in_patch ():
203204 is_patch = os .environ .get ("is_patch" )
204205 return is_patch is not None and is_patch .lower () == "true"
205206
206207
207208def build_id () -> str :
208209 """Returns the build id used for the image tag.
209- The build id is configurable `build_tag_type` and `version_id` in evergreen.
210+ The build id is configurable `build_tag_type` and `version_id` in evergreen.
210211 """
211212
212213 build_tag_type = ""
@@ -215,7 +216,6 @@ def build_id() -> str:
215216 except KeyError :
216217 pass
217218
218- version_id = ""
219219 try :
220220 version_id = os .environ ["version_id" ]
221221 except KeyError :
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ def test_create_and_push_manifest_push_error(mock_run):
325325 assert "Error pushing manifest" in str (exc_info .value )
326326 assert mock_run .call_count == 2 # Both create and push calls
327327
328+
328329def test_build_id ():
329330 from pipeline import build_id
330331
You can’t perform that action at this time.
0 commit comments