Beispiel #1
0
            def execute_step(
                    self,
                    step: steps.Step,
                    part_names: Optional[Sequence[str]] = None) -> None:
                if part_names is None:
                    part_names = []
                else:
                    part_names = list(part_names)

                raise ProviderExecError(
                    provider_name="fake",
                    command=["snapcraft", "pull"] + part_names,
                    exit_code=1,
                )
Beispiel #2
0
 def _raise_exec_error(self):
     self.call_handler(
         ProviderExecError(provider_name="foo", command="bar", exit_code=2), False
     )
Beispiel #3
0
 def execute_step(self, step: steps.Step) -> None:
     raise ProviderExecError(provider_name="fake",
                             command=["snapcraft", "pull"],
                             exit_code=1)