diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2023-01-27 09:12:50 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 15:25:11 +0000 |
commit | 3e3dcb9bd5abb88adcd85b4f89e8a81e7f6fa293 (patch) | |
tree | 020eee6abef093113de5b49c135c915c37173843 /tests/test_utils_proc.py | |
parent | 836efd40317a397761ec8b66e3f4398faac43ad0 (diff) | |
download | mlia-3e3dcb9bd5abb88adcd85b4f89e8a81e7f6fa293.tar.gz |
MLIA-595 Remove old backend configuration mechanism
- Remove old backend configuration code
- Install backends into directory ~/.mlia
- Rename targets/backends in registry to make it consistent
across codebase.
Change-Id: I9c8b012fe863280f1c692940c0dcad3ef638aaae
Diffstat (limited to 'tests/test_utils_proc.py')
-rw-r--r-- | tests/test_utils_proc.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_utils_proc.py b/tests/test_utils_proc.py new file mode 100644 index 0000000..bea431f --- /dev/null +++ b/tests/test_utils_proc.py @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates. +# SPDX-License-Identifier: Apache-2.0 +"""Tests for process management functions.""" +from unittest.mock import MagicMock + +from mlia.utils.proc import Command +from mlia.utils.proc import process_command_output + + +def test_process_command_output() -> None: + """Test function process_command_output.""" + command = Command(["echo", "-n", "sample message"]) + + output_consumer = MagicMock() + process_command_output(command, [output_consumer]) + + output_consumer.assert_called_once_with("sample message") |