Skip to content

Commit

Permalink
twister: fix exception message
Browse files Browse the repository at this point in the history
'Handling of handler...' is a bit weird to read.

(cherry picked from commit 35176b9)

Original-Signed-off-by: Anas Nashif <anas.nashif@intel.com>
GitOrigin-RevId: 35176b9
Change-Id: I7da0af27c58a3501785c6fcc97cbb881644faa2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5369979
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
nashif authored and Chromeos LUCI committed Mar 13, 2024
1 parent fe0023c commit 973a2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pylib/twister/twisterlib/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/twister/test_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 973a2f5

Please sign in to comment.