Skip to content

Commit 4676e40

Browse files
author
Andrija Kolic
committed
[GR-67459] Fix how hooks are registered in CustomHarnessBenchmarkSuite
PullRequest: mx/1958
2 parents 768b87f + b4a217c commit 4676e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mx/_impl/mx_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ def __init__(self, custom_harness_command: CustomHarnessCommand, *args, supporte
24512451
raise TypeError(f"Expected an instance of {CustomHarnessCommand.__name__}, instead got an instance of {custom_harness_command.__class__.__name__}")
24522452
def custom_harness_hook(cmd, suite):
24532453
return custom_harness_command.produceHarnessCommand(cmd, suite)
2454-
self.register_command_mapper_hook("custom-harness-hook", custom_harness_hook)
2454+
self.register_command_mapper_hook("custom-harness-hook", FunctionHookAdapter(custom_harness_hook))
24552455
self._supported_trackers = supported_trackers if supported_trackers is not None else []
24562456

24572457
@property

src/mx/mx_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue
2-
version = "7.58.7" # GR-66318: allow opening a package without any Java classes in it
2+
version = "7.58.8" # GR-67459: Fix how hooks are registered in CustomHarnessBenchmarkSuite

0 commit comments

Comments
 (0)