We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf30b24 commit 2e8a7a8Copy full SHA for 2e8a7a8
src/pytest_codspeed/instruments/valgrind.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+import os
4
import warnings
5
from typing import TYPE_CHECKING
6
@@ -27,7 +28,11 @@ def __init__(self, config: CodSpeedConfig) -> None:
27
28
try:
29
self.instrument_hooks = InstrumentHooks()
30
self.instrument_hooks.set_integration("pytest-codspeed", __semver_version__)
- except RuntimeError:
31
+ except RuntimeError as e:
32
+ if os.environ.get("CODSPEED_ENV") is not None:
33
+ raise Exception(
34
+ "Failed to initialize CPU simulation instrument hooks"
35
+ ) from e
36
self.instrument_hooks = None
37
38
self.should_measure = self.instrument_hooks is not None
0 commit comments