diff --git a/src/ahriman/core/spawn.py b/src/ahriman/core/spawn.py index df46cf9d..5da31bff 100644 --- a/src/ahriman/core/spawn.py +++ b/src/ahriman/core/spawn.py @@ -60,7 +60,7 @@ class Spawn(Thread): self.queue: Queue[Tuple[str, Optional[Exception]]] = Queue() # pylint: disable=unsubscriptable-object @staticmethod - def process(callback: Callable[[argparse.Namespace, str, Configuration], None], + def process(callback: Callable[[argparse.Namespace, str, Configuration, bool], None], args: argparse.Namespace, architecture: str, configuration: Configuration, process_id: str, queue: Queue[Tuple[str, Optional[Exception]]]) -> None: # pylint: disable=unsubscriptable-object """ @@ -73,7 +73,7 @@ class Spawn(Thread): :param queue: output queue """ try: - callback(args, architecture, configuration) + callback(args, architecture, configuration, args.no_report) error = None except Exception as e: error = e diff --git a/tests/ahriman/core/test_spawn.py b/tests/ahriman/core/test_spawn.py index 644f4221..9c33f3d1 100644 --- a/tests/ahriman/core/test_spawn.py +++ b/tests/ahriman/core/test_spawn.py @@ -9,11 +9,12 @@ def test_process(spawner: Spawn) -> None: must process external process run correctly """ args = MagicMock() + args.no_report = False callback = MagicMock() spawner.process(callback, args, spawner.architecture, spawner.configuration, "id", spawner.queue) - callback.assert_called_with(args, spawner.architecture, spawner.configuration) + callback.assert_called_with(args, spawner.architecture, spawner.configuration, False) (uuid, error) = spawner.queue.get() assert uuid == "id" assert error is None