From 973a2f580ff7f6c2d725cd857714f144c73197a8 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 15 Jan 2024 14:14:41 -0500 Subject: [PATCH] twister: fix exception message 'Handling of handler...' is a bit weird to read. (cherry picked from commit 35176b993d4e06cc840b8dff61c905ba8437de50) Original-Signed-off-by: Anas Nashif GitOrigin-RevId: 35176b993d4e06cc840b8dff61c905ba8437de50 Change-Id: I7da0af27c58a3501785c6fcc97cbb881644faa2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5369979 Commit-Queue: Fabio Baltieri Tested-by: Fabio Baltieri Tested-by: ChromeOS Prod (Robot) Reviewed-by: Fabio Baltieri --- scripts/pylib/twister/twisterlib/harness.py | 2 +- scripts/tests/twister/test_harness.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pylib/twister/twisterlib/harness.py b/scripts/pylib/twister/twisterlib/harness.py index 2158430dd5e..0c45e43573e 100644 --- a/scripts/pylib/twister/twisterlib/harness.py +++ b/scripts/pylib/twister/twisterlib/harness.py @@ -348,7 +348,7 @@ def generate_command(self): elif handler.type_str == 'build': command.append('--device-type=custom') else: - raise PytestHarnessException(f'Handling of handler {handler.type_str} not implemented yet') + raise PytestHarnessException(f'Support for handler {handler.type_str} not implemented yet') if handler.options.pytest_args: command.extend(handler.options.pytest_args) diff --git a/scripts/tests/twister/test_harness.py b/scripts/tests/twister/test_harness.py index f117a77e3f5..cdf82439fba 100644 --- a/scripts/tests/twister/test_harness.py +++ b/scripts/tests/twister/test_harness.py @@ -355,7 +355,7 @@ def test_pytest_run(caplog): # Arrange timeout = 10 cmd=['command'] - exp_out = 'Handling of handler handler_type not implemented yet' + exp_out = 'Support for handler handler_type not implemented yet' harness = Pytest() harness = mock.create_autospec(harness)