Skip extending fmf context if cli context missing
When Plan's CLI context object is not set, do not spike fmf
context with it.
Fix
@@ -1181,8 +1181,10 @@ class Plan(Core):
def _fmf_context(self) -> tmt.utils.FmfContextType:
""" Return combined context from plan data and command line """
combined = self.context.copy()
- assert self._context_object is not None # narrow type
+
+ if self._context_object is not None:
combined.update(self._context_object.fmf_context)
+
return combined
@staticmethod
